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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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
DataSourceParameters
structure that's in the request with the structures in theAlternateDataSourceParameters
allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameters
list is null, theDataSourceParameters
originally used with theseCredentials
is 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 theDataSourceParameters
structure that's in the request with the structures in theAlternateDataSourceParameters
allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameters
list is null, theDataSourceParameters
originally used with theseCredentials
is 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
DataSourceParameters
structure that's in the request with the structures in theAlternateDataSourceParameters
allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameters
list is null, theDataSourceParameters
originally used with theseCredentials
is 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 theDataSourceParameters
structure that's in the request with the structures in theAlternateDataSourceParameters
allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameters
list is null, theDataSourceParameters
originally used with theseCredentials
is 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 theDataSourceParameters
structure that's in the request with the structures in theAlternateDataSourceParameters
allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameters
list is null, theDataSourceParameters
originally used with theseCredentials
is automatically allowed.DataSourceParameters.Builder
avoiding the need to create one manually viaDataSourceParameters.builder()
.When the
Consumer
completes,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:
-