Interface CredentialPair.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CredentialPair.Builder,CredentialPair>,SdkBuilder<CredentialPair.Builder,CredentialPair>,SdkPojo
- Enclosing class:
- CredentialPair
@Mutable @NotThreadSafe public static interface CredentialPair.Builder extends SdkPojo, CopyableBuilder<CredentialPair.Builder,CredentialPair>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CredentialPair.BuilderalternateDataSourceParameters(Collection<DataSourceParameters> alternateDataSourceParameters)A set of alternate data source parameters that you want to share for these credentials.CredentialPair.BuilderalternateDataSourceParameters(Consumer<DataSourceParameters.Builder>... alternateDataSourceParameters)A set of alternate data source parameters that you want to share for these credentials.CredentialPair.BuilderalternateDataSourceParameters(DataSourceParameters... alternateDataSourceParameters)A set of alternate data source parameters that you want to share for these credentials.CredentialPair.Builderpassword(String password)Password.CredentialPair.Builderusername(String username)User name.-
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
-
username
CredentialPair.Builder username(String username)
User name.
- Parameters:
username- User name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
password
CredentialPair.Builder password(String password)
Password.
- Parameters:
password- Password.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternateDataSourceParameters
CredentialPair.Builder alternateDataSourceParameters(Collection<DataSourceParameters> alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the
DataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameterslist is null, theDataSourceParametersoriginally used with theseCredentialsis automatically allowed.- Parameters:
alternateDataSourceParameters- A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares theDataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameterslist is null, theDataSourceParametersoriginally used with theseCredentialsis automatically allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternateDataSourceParameters
CredentialPair.Builder alternateDataSourceParameters(DataSourceParameters... alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the
DataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameterslist is null, theDataSourceParametersoriginally used with theseCredentialsis automatically allowed.- Parameters:
alternateDataSourceParameters- A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares theDataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameterslist is null, theDataSourceParametersoriginally used with theseCredentialsis automatically allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternateDataSourceParameters
CredentialPair.Builder alternateDataSourceParameters(Consumer<DataSourceParameters.Builder>... alternateDataSourceParameters)
A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the
This is a convenience method that creates an instance of theDataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameterslist is null, theDataSourceParametersoriginally used with theseCredentialsis automatically allowed.DataSourceParameters.Builderavoiding the need to create one manually viaDataSourceParameters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#alternateDataSourceParameters(List.) - Parameters:
alternateDataSourceParameters- a consumer that will call methods onDataSourceParameters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#alternateDataSourceParameters(java.util.Collection)
-
-