Interface GetDelegatedAccessTokenResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDelegatedAccessTokenResponse.Builder,,GetDelegatedAccessTokenResponse> SdkBuilder<GetDelegatedAccessTokenResponse.Builder,,GetDelegatedAccessTokenResponse> SdkPojo,SdkResponse.Builder,StsResponse.Builder
- Enclosing class:
GetDelegatedAccessTokenResponse
@Mutable
@NotThreadSafe
public static interface GetDelegatedAccessTokenResponse.Builder
extends StsResponse.Builder, SdkPojo, CopyableBuilder<GetDelegatedAccessTokenResponse.Builder,GetDelegatedAccessTokenResponse>
-
Method Summary
Modifier and TypeMethodDescriptionassumedPrincipal(String assumedPrincipal) The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token.credentials(Consumer<Credentials.Builder> credentials) Sets the value of the Credentials property for this object.credentials(Credentials credentials) Sets the value of the Credentials property for this object.packedPolicySize(Integer packedPolicySize) The percentage of the maximum policy size that is used by the session policy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.sts.model.StsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
credentials
Sets the value of the Credentials property for this object.- Parameters:
credentials- The new value for the Credentials property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentials
default GetDelegatedAccessTokenResponse.Builder credentials(Consumer<Credentials.Builder> credentials) Sets the value of the Credentials property for this object. This is a convenience method that creates an instance of theCredentials.Builderavoiding the need to create one manually viaCredentials.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredentials(Credentials).- Parameters:
credentials- a consumer that will call methods onCredentials.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packedPolicySize
The percentage of the maximum policy size that is used by the session policy. The policy size is calculated as the sum of all the session policies and permission boundaries attached to the session. If the packed size exceeds 100%, the request fails.
- Parameters:
packedPolicySize- The percentage of the maximum policy size that is used by the session policy. The policy size is calculated as the sum of all the session policies and permission boundaries attached to the session. If the packed size exceeds 100%, the request fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assumedPrincipal
The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token. This ARN identifies the IAM entity whose permissions are granted by the temporary credentials.
- Parameters:
assumedPrincipal- The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token. This ARN identifies the IAM entity whose permissions are granted by the temporary credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-