Class TemporaryCredential

    • Method Detail

      • username

        public final String username()

        The user name.

        Returns:
        The user name.
      • password

        public final String password()

        The password.

        Returns:
        The password.
      • validForInMinutes

        public final Integer validForInMinutes()

        The length of time (in minutes) that the grant is valid. When the grant expires, at the end of this period, the user will no longer be able to use the credentials to log in. If they are logged in at the time, they will be automatically logged out.

        Returns:
        The length of time (in minutes) that the grant is valid. When the grant expires, at the end of this period, the user will no longer be able to use the credentials to log in. If they are logged in at the time, they will be automatically logged out.
      • instanceId

        public final String instanceId()

        The instance's AWS OpsWorks Stacks ID.

        Returns:
        The instance's AWS OpsWorks Stacks ID.
      • 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)