Interface GetCredentialsForIdentityResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CognitoIdentityResponse.Builder,CopyableBuilder<GetCredentialsForIdentityResponse.Builder,,GetCredentialsForIdentityResponse> SdkBuilder<GetCredentialsForIdentityResponse.Builder,,GetCredentialsForIdentityResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCredentialsForIdentityResponse
public static interface GetCredentialsForIdentityResponse.Builder
extends CognitoIdentityResponse.Builder, SdkPojo, CopyableBuilder<GetCredentialsForIdentityResponse.Builder,GetCredentialsForIdentityResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncredentials(Consumer<Credentials.Builder> credentials) Credentials for the provided identity ID.credentials(Credentials credentials) Credentials for the provided identity ID.identityId(String identityId) A unique identifier in the format REGION:GUID.Methods inherited from interface software.amazon.awssdk.services.cognitoidentity.model.CognitoIdentityResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
identityId
A unique identifier in the format REGION:GUID.
- Parameters:
identityId- A unique identifier in the format REGION:GUID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentials
Credentials for the provided identity ID.
- Parameters:
credentials- Credentials for the provided identity ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentials
default GetCredentialsForIdentityResponse.Builder credentials(Consumer<Credentials.Builder> credentials) Credentials for the provided identity ID.
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:
-