Interface Credentials.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Credentials.Builder,Credentials>,SdkBuilder<Credentials.Builder,Credentials>,SdkPojo
- Enclosing class:
- Credentials
public static interface Credentials.Builder extends SdkPojo, CopyableBuilder<Credentials.Builder,Credentials>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Credentials.BuilderaccessKeyId(String accessKeyId)The Access Key portion of the credentials.Credentials.Builderexpiration(Instant expiration)The date at which these credentials will expire.Credentials.BuildersecretKey(String secretKey)The Secret Access Key portion of the credentialsCredentials.BuildersessionToken(String sessionToken)The Session Token portion of the credentials-
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
-
-
-
-
Method Detail
-
accessKeyId
Credentials.Builder accessKeyId(String accessKeyId)
The Access Key portion of the credentials.
- Parameters:
accessKeyId- The Access Key portion of the credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretKey
Credentials.Builder secretKey(String secretKey)
The Secret Access Key portion of the credentials
- Parameters:
secretKey- The Secret Access Key portion of the credentials- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionToken
Credentials.Builder sessionToken(String sessionToken)
The Session Token portion of the credentials
- Parameters:
sessionToken- The Session Token portion of the credentials- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiration
Credentials.Builder expiration(Instant expiration)
The date at which these credentials will expire.
- Parameters:
expiration- The date at which these credentials will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-