Interface DataSourceCredentials.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DataSourceCredentials.Builder,,DataSourceCredentials> SdkBuilder<DataSourceCredentials.Builder,,DataSourceCredentials> SdkPojo
- Enclosing class:
DataSourceCredentials
-
Method Summary
Modifier and TypeMethodDescriptioncopySourceArn(String copySourceArn) The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use.default DataSourceCredentials.BuildercredentialPair(Consumer<CredentialPair.Builder> credentialPair) Credential pair.credentialPair(CredentialPair credentialPair) Credential pair.The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.default DataSourceCredentials.BuilderwebProxyCredentials(Consumer<WebProxyCredentials.Builder> webProxyCredentials) The credentials for connecting through a web proxy server.webProxyCredentials(WebProxyCredentials webProxyCredentials) The credentials for connecting through a web proxy server.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
-
credentialPair
Credential pair. For more information, see
CredentialPair.- Parameters:
credentialPair- Credential pair. For more information, seeCredentialPair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentialPair
default DataSourceCredentials.Builder credentialPair(Consumer<CredentialPair.Builder> credentialPair) Credential pair. For more information, see
This is a convenience method that creates an instance of theCredentialPair.CredentialPair.Builderavoiding the need to create one manually viaCredentialPair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredentialPair(CredentialPair).- Parameters:
credentialPair- a consumer that will call methods onCredentialPair.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
copySourceArn
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When
CopySourceArnis not null, the credential pair from the data source in the ARN is used as the credentials for theDataSourceCredentialsstructure.- Parameters:
copySourceArn- The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. WhenCopySourceArnis not null, the credential pair from the data source in the ARN is used as the credentials for theDataSourceCredentialsstructure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretArn
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
- Parameters:
secretArn- The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
webProxyCredentials
The credentials for connecting through a web proxy server.
- Parameters:
webProxyCredentials- The credentials for connecting through a web proxy server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
webProxyCredentials
default DataSourceCredentials.Builder webProxyCredentials(Consumer<WebProxyCredentials.Builder> webProxyCredentials) The credentials for connecting through a web proxy server.
This is a convenience method that creates an instance of theWebProxyCredentials.Builderavoiding the need to create one manually viaWebProxyCredentials.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towebProxyCredentials(WebProxyCredentials).- Parameters:
webProxyCredentials- a consumer that will call methods onWebProxyCredentials.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-