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) 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) 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
- Parameters:
packedPolicySize-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assumedPrincipal
- Parameters:
assumedPrincipal-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-