Class Directory

    • Method Detail

      • name

        public final String name()

        The name of the directory.

        Returns:
        The name of the directory.
      • directoryArn

        public final String directoryArn()

        The Amazon Resource Name (ARN) that is associated with the directory. For more information, see arns.

        Returns:
        The Amazon Resource Name (ARN) that is associated with the directory. For more information, see arns.
      • state

        public final DirectoryState state()

        The state of the directory. Can be either Enabled, Disabled, or Deleted.

        If the service returns an enum value that is not available in the current SDK version, state will return DirectoryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The state of the directory. Can be either Enabled, Disabled, or Deleted.
        See Also:
        DirectoryState
      • stateAsString

        public final String stateAsString()

        The state of the directory. Can be either Enabled, Disabled, or Deleted.

        If the service returns an enum value that is not available in the current SDK version, state will return DirectoryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The state of the directory. Can be either Enabled, Disabled, or Deleted.
        See Also:
        DirectoryState
      • creationDateTime

        public final Instant creationDateTime()

        The date and time when the directory was created.

        Returns:
        The date and time when the directory was created.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)