Interface Credential.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Credential.Builder,,Credential> SdkBuilder<Credential.Builder,,Credential> SdkPojo
- Enclosing class:
Credential
@Mutable
@NotThreadSafe
public static interface Credential.Builder
extends SdkPojo, CopyableBuilder<Credential.Builder,Credential>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Credential.BuilderapiKeyCredential(Consumer<ApiKeyCredential.Builder> apiKeyCredential) Contains API key credential information.apiKeyCredential(ApiKeyCredential apiKeyCredential) Contains API key credential information.default Credential.Builderoauth2Credential(Consumer<Oauth2Credential.Builder> oauth2Credential) Contains OAuth2 client credential information.oauth2Credential(Oauth2Credential oauth2Credential) Contains OAuth2 client credential information.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, sdkFields
-
Method Details
-
oauth2Credential
Contains OAuth2 client credential information.
- Parameters:
oauth2Credential- Contains OAuth2 client credential information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oauth2Credential
Contains OAuth2 client credential information.
This is a convenience method that creates an instance of theOauth2Credential.Builderavoiding the need to create one manually viaOauth2Credential.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooauth2Credential(Oauth2Credential).- Parameters:
oauth2Credential- a consumer that will call methods onOauth2Credential.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
apiKeyCredential
Contains API key credential information.
- Parameters:
apiKeyCredential- Contains API key credential information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKeyCredential
Contains API key credential information.
This is a convenience method that creates an instance of theApiKeyCredential.Builderavoiding the need to create one manually viaApiKeyCredential.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toapiKeyCredential(ApiKeyCredential).- Parameters:
apiKeyCredential- a consumer that will call methods onApiKeyCredential.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-