@Generated(value="software.amazon.awssdk:codegen") public final class GetSessionTokenResponse extends StsResponse implements ToCopyableBuilder<GetSessionTokenResponse.Builder,GetSessionTokenResponse>
Contains the response to a successful GetSessionToken request, including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetSessionTokenResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetSessionTokenResponse.Builder |
builder() |
Credentials |
credentials()
The temporary security credentials, which include an access key ID, a secret access key, and a security (or
session) token.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetSessionTokenResponse.Builder> |
serializableBuilderClass() |
GetSessionTokenResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Credentials credentials()
The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
public GetSessionTokenResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetSessionTokenResponse.Builder,GetSessionTokenResponse>toBuilder in class AwsResponsepublic static GetSessionTokenResponse.Builder builder()
public static Class<? extends GetSessionTokenResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2022. All rights reserved.