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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetDelegatedAccessTokenResponse.BuilderassumedPrincipal(String assumedPrincipal)The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token.default GetDelegatedAccessTokenResponse.Buildercredentials(Consumer<Credentials.Builder> credentials)Sets the value of the Credentials property for this object.GetDelegatedAccessTokenResponse.Buildercredentials(Credentials credentials)Sets the value of the Credentials property for this object.GetDelegatedAccessTokenResponse.BuilderpackedPolicySize(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.sts.model.StsResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
credentials
GetDelegatedAccessTokenResponse.Builder credentials(Credentials 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:
credentials(Credentials)
-
packedPolicySize
GetDelegatedAccessTokenResponse.Builder packedPolicySize(Integer 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
GetDelegatedAccessTokenResponse.Builder assumedPrincipal(String 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.
-
-