Class TemporaryCredential
- java.lang.Object
-
- software.amazon.awssdk.services.opsworks.model.TemporaryCredential
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TemporaryCredential.Builder,TemporaryCredential>
@Generated("software.amazon.awssdk:codegen") public final class TemporaryCredential extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TemporaryCredential.Builder,TemporaryCredential>
Contains the data needed by RDP clients such as the Microsoft Remote Desktop Connection to log in to the instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTemporaryCredential.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TemporaryCredential.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceId()The instance's AWS OpsWorks Stacks ID.Stringpassword()The password.List<SdkField<?>>sdkFields()static Class<? extends TemporaryCredential.Builder>serializableBuilderClass()TemporaryCredential.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringusername()The user name.IntegervalidForInMinutes()The length of time (in minutes) that the grant is valid.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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.
-
toBuilder
public TemporaryCredential.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TemporaryCredential.Builder,TemporaryCredential>
-
builder
public static TemporaryCredential.Builder builder()
-
serializableBuilderClass
public static Class<? extends TemporaryCredential.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-