/* * 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 { /// /// Describes an endpoint of a database instance in response to operations such as the /// following: /// /// /// public partial class Endpoint { private string _certificateArn; private string _databaseName; private DmsTransferSettings _dmsTransferSettings; private DocDbSettings _docDbSettings; private DynamoDbSettings _dynamoDbSettings; private ElasticsearchSettings _elasticsearchSettings; private string _endpointArn; private string _endpointIdentifier; private ReplicationEndpointTypeValue _endpointType; private string _engineDisplayName; private string _engineName; private string _externalId; private string _externalTableDefinition; private string _extraConnectionAttributes; private GcpMySQLSettings _gcpMySQLSettings; private IBMDb2Settings _ibmDb2Settings; private KafkaSettings _kafkaSettings; private KinesisSettings _kinesisSettings; private string _kmsKeyId; private MicrosoftSQLServerSettings _microsoftSQLServerSettings; private MongoDbSettings _mongoDbSettings; private MySQLSettings _mySQLSettings; private NeptuneSettings _neptuneSettings; private OracleSettings _oracleSettings; private int? _port; private PostgreSQLSettings _postgreSQLSettings; private RedisSettings _redisSettings; private RedshiftSettings _redshiftSettings; private S3Settings _s3Settings; private string _serverName; private string _serviceAccessRoleArn; private DmsSslModeValue _sslMode; private string _status; private SybaseSettings _sybaseSettings; private TimestreamSettings _timestreamSettings; private string _username; /// /// Gets and sets the property CertificateArn. /// /// The Amazon Resource Name (ARN) used for SSL connection to the endpoint. /// /// public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } /// /// Gets and sets the property DatabaseName. /// /// The name of the database at 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 DmsTransferSettings. /// /// The settings for the DMS Transfer type source. For more information, see the DmsTransferSettings /// structure. /// /// public DmsTransferSettings DmsTransferSettings { get { return this._dmsTransferSettings; } set { this._dmsTransferSettings = value; } } // Check to see if DmsTransferSettings property is set internal bool IsSetDmsTransferSettings() { return this._dmsTransferSettings != null; } /// /// Gets and sets the property DocDbSettings. /// public DocDbSettings DocDbSettings { get { return this._docDbSettings; } set { this._docDbSettings = value; } } // Check to see if DocDbSettings property is set internal bool IsSetDocDbSettings() { return this._docDbSettings != null; } /// /// Gets and sets the property DynamoDbSettings. /// /// The settings for the DynamoDB target endpoint. For more information, see the DynamoDBSettings /// structure. /// /// public DynamoDbSettings DynamoDbSettings { get { return this._dynamoDbSettings; } set { this._dynamoDbSettings = value; } } // Check to see if DynamoDbSettings property is set internal bool IsSetDynamoDbSettings() { return this._dynamoDbSettings != null; } /// /// Gets and sets the property ElasticsearchSettings. /// /// The settings for the OpenSearch source endpoint. For more information, see the ElasticsearchSettings /// structure. /// /// public ElasticsearchSettings ElasticsearchSettings { get { return this._elasticsearchSettings; } set { this._elasticsearchSettings = value; } } // Check to see if ElasticsearchSettings property is set internal bool IsSetElasticsearchSettings() { return this._elasticsearchSettings != null; } /// /// Gets and sets the property EndpointArn. /// /// The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. /// /// public string EndpointArn { get { return this._endpointArn; } set { this._endpointArn = value; } } // Check to see if EndpointArn property is set internal bool IsSetEndpointArn() { return this._endpointArn != null; } /// /// Gets and sets the property EndpointIdentifier. /// /// The database endpoint identifier. Identifiers must begin with a letter and must contain /// only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two /// consecutive hyphens. /// /// public string EndpointIdentifier { get { return this._endpointIdentifier; } set { this._endpointIdentifier = value; } } // Check to see if EndpointIdentifier property is set internal bool IsSetEndpointIdentifier() { return this._endpointIdentifier != null; } /// /// Gets and sets the property EndpointType. /// /// The type of endpoint. Valid values are source and target. /// /// public ReplicationEndpointTypeValue EndpointType { get { return this._endpointType; } set { this._endpointType = value; } } // Check to see if EndpointType property is set internal bool IsSetEndpointType() { return this._endpointType != null; } /// /// Gets and sets the property EngineDisplayName. /// /// The expanded name for the engine name. For example, if the EngineName /// parameter is "aurora", this value would be "Amazon Aurora MySQL". /// /// public string EngineDisplayName { get { return this._engineDisplayName; } set { this._engineDisplayName = value; } } // Check to see if EngineDisplayName property is set internal bool IsSetEngineDisplayName() { return this._engineDisplayName != null; } /// /// Gets and sets the property EngineName. /// /// The database engine name. Valid values, depending on the EndpointType, include "mysql", /// "oracle", "postgres", "mariadb", "aurora", /// "aurora-postgresql", "redshift", "s3", "db2", /// "db2-zos", "azuredb", "sybase", "dynamodb", /// "mongodb", "kinesis", "kafka", "elasticsearch", /// "documentdb", "sqlserver", "neptune", and "babelfish". /// /// public string EngineName { get { return this._engineName; } set { this._engineName = value; } } // Check to see if EngineName property is set internal bool IsSetEngineName() { return this._engineName != null; } /// /// Gets and sets the property ExternalId. /// /// Value returned by a call to CreateEndpoint that can be used for cross-account validation. /// Use it on a subsequent call to CreateEndpoint to create the endpoint with a cross-account. /// /// /// public string ExternalId { get { return this._externalId; } set { this._externalId = value; } } // Check to see if ExternalId property is set internal bool IsSetExternalId() { return this._externalId != null; } /// /// Gets and sets the property ExternalTableDefinition. /// /// The external table definition. /// /// public string ExternalTableDefinition { get { return this._externalTableDefinition; } set { this._externalTableDefinition = value; } } // Check to see if ExternalTableDefinition property is set internal bool IsSetExternalTableDefinition() { return this._externalTableDefinition != null; } /// /// Gets and sets the property ExtraConnectionAttributes. /// /// Additional connection attributes used to connect to the endpoint. /// /// public string ExtraConnectionAttributes { get { return this._extraConnectionAttributes; } set { this._extraConnectionAttributes = value; } } // Check to see if ExtraConnectionAttributes property is set internal bool IsSetExtraConnectionAttributes() { return this._extraConnectionAttributes != null; } /// /// Gets and sets the property GcpMySQLSettings. /// /// Settings in JSON format for the source GCP MySQL endpoint. /// /// public GcpMySQLSettings GcpMySQLSettings { get { return this._gcpMySQLSettings; } set { this._gcpMySQLSettings = value; } } // Check to see if GcpMySQLSettings property is set internal bool IsSetGcpMySQLSettings() { return this._gcpMySQLSettings != null; } /// /// Gets and sets the property IBMDb2Settings. /// /// The settings for the IBM Db2 LUW source endpoint. For more information, see the IBMDb2Settings /// structure. /// /// public IBMDb2Settings IBMDb2Settings { get { return this._ibmDb2Settings; } set { this._ibmDb2Settings = value; } } // Check to see if IBMDb2Settings property is set internal bool IsSetIBMDb2Settings() { return this._ibmDb2Settings != null; } /// /// Gets and sets the property KafkaSettings. /// /// The settings for the Apache Kafka target endpoint. For more information, see the KafkaSettings /// structure. /// /// public KafkaSettings KafkaSettings { get { return this._kafkaSettings; } set { this._kafkaSettings = value; } } // Check to see if KafkaSettings property is set internal bool IsSetKafkaSettings() { return this._kafkaSettings != null; } /// /// Gets and sets the property KinesisSettings. /// /// The settings for the Amazon Kinesis target endpoint. For more information, see the /// KinesisSettings structure. /// /// public KinesisSettings KinesisSettings { get { return this._kinesisSettings; } set { this._kinesisSettings = value; } } // Check to see if KinesisSettings property is set internal bool IsSetKinesisSettings() { return this._kinesisSettings != null; } /// /// Gets and sets the property KmsKeyId. /// /// An KMS key identifier that is used to encrypt the connection parameters for the endpoint. /// /// /// /// If you don't specify a value for the KmsKeyId parameter, then DMS uses /// your default encryption key. /// /// /// /// KMS creates the default encryption key for your Amazon Web Services account. Your /// Amazon Web Services account has a different default encryption key for each Amazon /// Web Services Region. /// /// public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property MicrosoftSQLServerSettings. /// /// The settings for the Microsoft SQL Server source and target endpoint. For more information, /// see the MicrosoftSQLServerSettings structure. /// /// public MicrosoftSQLServerSettings MicrosoftSQLServerSettings { get { return this._microsoftSQLServerSettings; } set { this._microsoftSQLServerSettings = value; } } // Check to see if MicrosoftSQLServerSettings property is set internal bool IsSetMicrosoftSQLServerSettings() { return this._microsoftSQLServerSettings != null; } /// /// Gets and sets the property MongoDbSettings. /// /// The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings /// structure. /// /// public MongoDbSettings MongoDbSettings { get { return this._mongoDbSettings; } set { this._mongoDbSettings = value; } } // Check to see if MongoDbSettings property is set internal bool IsSetMongoDbSettings() { return this._mongoDbSettings != null; } /// /// Gets and sets the property MySQLSettings. /// /// The settings for the MySQL source and target endpoint. For more information, see the /// MySQLSettings structure. /// /// public MySQLSettings MySQLSettings { get { return this._mySQLSettings; } set { this._mySQLSettings = value; } } // Check to see if MySQLSettings property is set internal bool IsSetMySQLSettings() { return this._mySQLSettings != null; } /// /// Gets and sets the property NeptuneSettings. /// /// The settings for the Amazon Neptune target endpoint. For more information, see the /// NeptuneSettings structure. /// /// public NeptuneSettings NeptuneSettings { get { return this._neptuneSettings; } set { this._neptuneSettings = value; } } // Check to see if NeptuneSettings property is set internal bool IsSetNeptuneSettings() { return this._neptuneSettings != null; } /// /// Gets and sets the property OracleSettings. /// /// The settings for the Oracle source and target endpoint. For more information, see /// the OracleSettings structure. /// /// public OracleSettings OracleSettings { get { return this._oracleSettings; } set { this._oracleSettings = value; } } // Check to see if OracleSettings property is set internal bool IsSetOracleSettings() { return this._oracleSettings != null; } /// /// Gets and sets the property Port. /// /// The port value used to access the endpoint. /// /// 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 PostgreSQLSettings. /// /// The settings for the PostgreSQL source and target endpoint. For more information, /// see the PostgreSQLSettings structure. /// /// public PostgreSQLSettings PostgreSQLSettings { get { return this._postgreSQLSettings; } set { this._postgreSQLSettings = value; } } // Check to see if PostgreSQLSettings property is set internal bool IsSetPostgreSQLSettings() { return this._postgreSQLSettings != null; } /// /// Gets and sets the property RedisSettings. /// /// The settings for the Redis target endpoint. For more information, see the RedisSettings /// structure. /// /// public RedisSettings RedisSettings { get { return this._redisSettings; } set { this._redisSettings = value; } } // Check to see if RedisSettings property is set internal bool IsSetRedisSettings() { return this._redisSettings != null; } /// /// Gets and sets the property RedshiftSettings. /// /// Settings for the Amazon Redshift endpoint. /// /// public RedshiftSettings RedshiftSettings { get { return this._redshiftSettings; } set { this._redshiftSettings = value; } } // Check to see if RedshiftSettings property is set internal bool IsSetRedshiftSettings() { return this._redshiftSettings != null; } /// /// Gets and sets the property S3Settings. /// /// The settings for the S3 target endpoint. For more information, see the S3Settings /// structure. /// /// public S3Settings S3Settings { get { return this._s3Settings; } set { this._s3Settings = value; } } // Check to see if S3Settings property is set internal bool IsSetS3Settings() { return this._s3Settings != null; } /// /// Gets and sets the property ServerName. /// /// The name of the server at 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 ServiceAccessRoleArn. /// /// The Amazon Resource Name (ARN) used by the service to access the IAM role. The role /// must allow the iam:PassRole action. /// /// public string ServiceAccessRoleArn { get { return this._serviceAccessRoleArn; } set { this._serviceAccessRoleArn = value; } } // Check to see if ServiceAccessRoleArn property is set internal bool IsSetServiceAccessRoleArn() { return this._serviceAccessRoleArn != null; } /// /// Gets and sets the property SslMode. /// /// The SSL mode used to connect to the endpoint. The default value is none. /// /// public DmsSslModeValue SslMode { get { return this._sslMode; } set { this._sslMode = value; } } // Check to see if SslMode property is set internal bool IsSetSslMode() { return this._sslMode != null; } /// /// Gets and sets the property Status. /// /// The status of the endpoint. /// /// public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property SybaseSettings. /// /// The settings for the SAP ASE source and target endpoint. For more information, see /// the SybaseSettings structure. /// /// public SybaseSettings SybaseSettings { get { return this._sybaseSettings; } set { this._sybaseSettings = value; } } // Check to see if SybaseSettings property is set internal bool IsSetSybaseSettings() { return this._sybaseSettings != null; } /// /// Gets and sets the property TimestreamSettings. /// /// The settings for the Amazon Timestream target endpoint. For more information, see /// the TimestreamSettings structure. /// /// public TimestreamSettings TimestreamSettings { get { return this._timestreamSettings; } set { this._timestreamSettings = value; } } // Check to see if TimestreamSettings property is set internal bool IsSetTimestreamSettings() { return this._timestreamSettings != null; } /// /// Gets and sets the property Username. /// /// The user name used to connect to the endpoint. /// /// 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; } } }