#[non_exhaustive]pub struct IbmDb2SettingsBuilder { /* private fields */ }
Expand description
A builder for IbmDb2Settings
.
Implementations§
source§impl IbmDb2SettingsBuilder
impl IbmDb2SettingsBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
Database name for the endpoint.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
Database name for the endpoint.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
Database name for the endpoint.
sourcepub fn set_password(self, input: Option<String>) -> Self
pub fn set_password(self, input: Option<String>) -> Self
Endpoint connection password.
sourcepub fn get_password(&self) -> &Option<String>
pub fn get_password(&self) -> &Option<String>
Endpoint connection password.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
Endpoint TCP port. The default value is 50000.
sourcepub fn server_name(self, input: impl Into<String>) -> Self
pub fn server_name(self, input: impl Into<String>) -> Self
Fully qualified domain name of the endpoint.
sourcepub fn set_server_name(self, input: Option<String>) -> Self
pub fn set_server_name(self, input: Option<String>) -> Self
Fully qualified domain name of the endpoint.
sourcepub fn get_server_name(&self) -> &Option<String>
pub fn get_server_name(&self) -> &Option<String>
Fully qualified domain name of the endpoint.
sourcepub fn set_data_capture_changes(self, input: bool) -> Self
pub fn set_data_capture_changes(self, input: bool) -> Self
Enables ongoing replication (CDC) as a BOOLEAN value. The default is true.
sourcepub fn set_set_data_capture_changes(self, input: Option<bool>) -> Self
pub fn set_set_data_capture_changes(self, input: Option<bool>) -> Self
Enables ongoing replication (CDC) as a BOOLEAN value. The default is true.
sourcepub fn get_set_data_capture_changes(&self) -> &Option<bool>
pub fn get_set_data_capture_changes(&self) -> &Option<bool>
Enables ongoing replication (CDC) as a BOOLEAN value. The default is true.
sourcepub fn current_lsn(self, input: impl Into<String>) -> Self
pub fn current_lsn(self, input: impl Into<String>) -> Self
For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN) where you want the replication to start.
sourcepub fn set_current_lsn(self, input: Option<String>) -> Self
pub fn set_current_lsn(self, input: Option<String>) -> Self
For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN) where you want the replication to start.
sourcepub fn get_current_lsn(&self) -> &Option<String>
pub fn get_current_lsn(&self) -> &Option<String>
For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN) where you want the replication to start.
sourcepub fn max_k_bytes_per_read(self, input: i32) -> Self
pub fn max_k_bytes_per_read(self, input: i32) -> Self
Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.
sourcepub fn set_max_k_bytes_per_read(self, input: Option<i32>) -> Self
pub fn set_max_k_bytes_per_read(self, input: Option<i32>) -> Self
Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.
sourcepub fn get_max_k_bytes_per_read(&self) -> &Option<i32>
pub fn get_max_k_bytes_per_read(&self) -> &Option<i32>
Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
Endpoint connection user name.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
Endpoint connection user name.
sourcepub fn secrets_manager_access_role_arn(self, input: impl Into<String>) -> Self
pub fn secrets_manager_access_role_arn(self, input: impl Into<String>) -> Self
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the required permissions to access the value in SecretsManagerSecret
. The role must allow the iam:PassRole
action. SecretsManagerSecret
has the value of the Amazon Web Services Secrets Manager secret that allows access to the Db2 LUW endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and SecretsManagerSecretId
. Or you can specify clear-text values for UserName
, Password
, ServerName
, and Port
. You can't specify both. For more information on creating this SecretsManagerSecret
and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId
required to access it, see Using secrets to access Database Migration Service resources in the Database Migration Service User Guide.
sourcepub fn set_secrets_manager_access_role_arn(self, input: Option<String>) -> Self
pub fn set_secrets_manager_access_role_arn(self, input: Option<String>) -> Self
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the required permissions to access the value in SecretsManagerSecret
. The role must allow the iam:PassRole
action. SecretsManagerSecret
has the value of the Amazon Web Services Secrets Manager secret that allows access to the Db2 LUW endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and SecretsManagerSecretId
. Or you can specify clear-text values for UserName
, Password
, ServerName
, and Port
. You can't specify both. For more information on creating this SecretsManagerSecret
and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId
required to access it, see Using secrets to access Database Migration Service resources in the Database Migration Service User Guide.
sourcepub fn get_secrets_manager_access_role_arn(&self) -> &Option<String>
pub fn get_secrets_manager_access_role_arn(&self) -> &Option<String>
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the required permissions to access the value in SecretsManagerSecret
. The role must allow the iam:PassRole
action. SecretsManagerSecret
has the value of the Amazon Web Services Secrets Manager secret that allows access to the Db2 LUW endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and SecretsManagerSecretId
. Or you can specify clear-text values for UserName
, Password
, ServerName
, and Port
. You can't specify both. For more information on creating this SecretsManagerSecret
and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId
required to access it, see Using secrets to access Database Migration Service resources in the Database Migration Service User Guide.
sourcepub fn secrets_manager_secret_id(self, input: impl Into<String>) -> Self
pub fn secrets_manager_secret_id(self, input: impl Into<String>) -> Self
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
that contains the Db2 LUW endpoint connection details.
sourcepub fn set_secrets_manager_secret_id(self, input: Option<String>) -> Self
pub fn set_secrets_manager_secret_id(self, input: Option<String>) -> Self
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
that contains the Db2 LUW endpoint connection details.
sourcepub fn get_secrets_manager_secret_id(&self) -> &Option<String>
pub fn get_secrets_manager_secret_id(&self) -> &Option<String>
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
that contains the Db2 LUW endpoint connection details.
sourcepub fn build(self) -> IbmDb2Settings
pub fn build(self) -> IbmDb2Settings
Consumes the builder and constructs a IbmDb2Settings
.
Trait Implementations§
source§impl Clone for IbmDb2SettingsBuilder
impl Clone for IbmDb2SettingsBuilder
source§fn clone(&self) -> IbmDb2SettingsBuilder
fn clone(&self) -> IbmDb2SettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IbmDb2SettingsBuilder
impl Debug for IbmDb2SettingsBuilder
source§impl Default for IbmDb2SettingsBuilder
impl Default for IbmDb2SettingsBuilder
source§fn default() -> IbmDb2SettingsBuilder
fn default() -> IbmDb2SettingsBuilder
source§impl PartialEq<IbmDb2SettingsBuilder> for IbmDb2SettingsBuilder
impl PartialEq<IbmDb2SettingsBuilder> for IbmDb2SettingsBuilder
source§fn eq(&self, other: &IbmDb2SettingsBuilder) -> bool
fn eq(&self, other: &IbmDb2SettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.