/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the dms-2016-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DatabaseMigrationService.Model
{
///
/// Provides information that defines an IBM Db2 LUW endpoint.
///
public partial class IBMDb2Settings
{
private string _currentLsn;
private string _databaseName;
private int? _maxKBytesPerRead;
private string _password;
private int? _port;
private string _secretsManagerAccessRoleArn;
private string _secretsManagerSecretId;
private string _serverName;
private bool? _setDataCaptureChanges;
private string _username;
///
/// Gets and sets the property CurrentLsn.
///
/// For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN)
/// where you want the replication to start.
///
///
public string CurrentLsn
{
get { return this._currentLsn; }
set { this._currentLsn = value; }
}
// Check to see if CurrentLsn property is set
internal bool IsSetCurrentLsn()
{
return this._currentLsn != null;
}
///
/// Gets and sets the property DatabaseName.
///
/// Database name for the endpoint.
///
///
public string DatabaseName
{
get { return this._databaseName; }
set { this._databaseName = value; }
}
// Check to see if DatabaseName property is set
internal bool IsSetDatabaseName()
{
return this._databaseName != null;
}
///
/// Gets and sets the property MaxKBytesPerRead.
///
/// Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.
///
///
public int MaxKBytesPerRead
{
get { return this._maxKBytesPerRead.GetValueOrDefault(); }
set { this._maxKBytesPerRead = value; }
}
// Check to see if MaxKBytesPerRead property is set
internal bool IsSetMaxKBytesPerRead()
{
return this._maxKBytesPerRead.HasValue;
}
///
/// Gets and sets the property Password.
///
/// Endpoint connection password.
///
///
[AWSProperty(Sensitive=true)]
public string Password
{
get { return this._password; }
set { this._password = value; }
}
// Check to see if Password property is set
internal bool IsSetPassword()
{
return this._password != null;
}
///
/// Gets and sets the property Port.
///
/// Endpoint TCP port. The default value is 50000.
///
///
public int Port
{
get { return this._port.GetValueOrDefault(); }
set { this._port = value; }
}
// Check to see if Port property is set
internal bool IsSetPort()
{
return this._port.HasValue;
}
///
/// Gets and sets the property SecretsManagerAccessRoleArn.
///
/// 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.
///
///
///
public string SecretsManagerAccessRoleArn
{
get { return this._secretsManagerAccessRoleArn; }
set { this._secretsManagerAccessRoleArn = value; }
}
// Check to see if SecretsManagerAccessRoleArn property is set
internal bool IsSetSecretsManagerAccessRoleArn()
{
return this._secretsManagerAccessRoleArn != null;
}
///
/// Gets and sets the property SecretsManagerSecretId.
///
/// The full ARN, partial ARN, or friendly name of the SecretsManagerSecret
/// that contains the Db2 LUW endpoint connection details.
///
///
public string SecretsManagerSecretId
{
get { return this._secretsManagerSecretId; }
set { this._secretsManagerSecretId = value; }
}
// Check to see if SecretsManagerSecretId property is set
internal bool IsSetSecretsManagerSecretId()
{
return this._secretsManagerSecretId != null;
}
///
/// Gets and sets the property ServerName.
///
/// Fully qualified domain name of the endpoint.
///
///
public string ServerName
{
get { return this._serverName; }
set { this._serverName = value; }
}
// Check to see if ServerName property is set
internal bool IsSetServerName()
{
return this._serverName != null;
}
///
/// Gets and sets the property SetDataCaptureChanges.
///
/// Enables ongoing replication (CDC) as a BOOLEAN value. The default is true.
///
///
public bool SetDataCaptureChanges
{
get { return this._setDataCaptureChanges.GetValueOrDefault(); }
set { this._setDataCaptureChanges = value; }
}
// Check to see if SetDataCaptureChanges property is set
internal bool IsSetSetDataCaptureChanges()
{
return this._setDataCaptureChanges.HasValue;
}
///
/// Gets and sets the property Username.
///
/// Endpoint connection user name.
///
///
public string Username
{
get { return this._username; }
set { this._username = value; }
}
// Check to see if Username property is set
internal bool IsSetUsername()
{
return this._username != null;
}
}
}