Interface CredentialPair.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CredentialPair.Builder,CredentialPair>, SdkBuilder<CredentialPair.Builder,CredentialPair>, SdkPojo
Enclosing class:
CredentialPair

public static interface CredentialPair.Builder extends SdkPojo, CopyableBuilder<CredentialPair.Builder,CredentialPair>
  • Method Details

    • 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 DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials 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 the DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials 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 the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials 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 the DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials 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 DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.

      This is a convenience method that creates an instance of the DataSourceParameters.Builder avoiding the need to create one manually via DataSourceParameters.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to alternateDataSourceParameters(List<DataSourceParameters>).

      Parameters:
      alternateDataSourceParameters - a consumer that will call methods on DataSourceParameters.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: