Interface CredentialPair.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CredentialPair.Builder,,CredentialPair> SdkBuilder<CredentialPair.Builder,,CredentialPair> SdkPojo
- Enclosing class:
CredentialPair
-
Method Summary
Modifier and TypeMethodDescriptionalternateDataSourceParameters(Collection<DataSourceParameters> alternateDataSourceParameters) A set of alternate data source parameters that you want to share for these credentials.alternateDataSourceParameters(Consumer<DataSourceParameters.Builder>... alternateDataSourceParameters) A set of alternate data source parameters that you want to share for these credentials.alternateDataSourceParameters(DataSourceParameters... alternateDataSourceParameters) A set of alternate data source parameters that you want to share for these credentials.Password.User name.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
-
username
User name.
- Parameters:
username- User name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 toalternateDataSourceParameters(List<DataSourceParameters>).- 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:
-