/* * 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 lookoutmetrics-2017-07-25.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.LookoutMetrics.Model { /// /// Contains information about the Amazon Relational Database Service (RDS) configuration. /// public partial class RDSSourceConfig { private string _databaseHost; private string _databaseName; private int? _databasePort; private string _dbInstanceIdentifier; private string _roleArn; private string _secretManagerArn; private string _tableName; private VpcConfiguration _vpcConfiguration; /// /// Gets and sets the property DatabaseHost. /// /// The host name of the database. /// /// [AWSProperty(Min=1, Max=253)] public string DatabaseHost { get { return this._databaseHost; } set { this._databaseHost = value; } } // Check to see if DatabaseHost property is set internal bool IsSetDatabaseHost() { return this._databaseHost != null; } /// /// Gets and sets the property DatabaseName. /// /// The name of the RDS database. /// /// [AWSProperty(Min=1, Max=64)] 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 DatabasePort. /// /// The port number where the database can be accessed. /// /// [AWSProperty(Min=1, Max=65535)] public int DatabasePort { get { return this._databasePort.GetValueOrDefault(); } set { this._databasePort = value; } } // Check to see if DatabasePort property is set internal bool IsSetDatabasePort() { return this._databasePort.HasValue; } /// /// Gets and sets the property DBInstanceIdentifier. /// /// A string identifying the database instance. /// /// [AWSProperty(Min=1, Max=63)] public string DBInstanceIdentifier { get { return this._dbInstanceIdentifier; } set { this._dbInstanceIdentifier = value; } } // Check to see if DBInstanceIdentifier property is set internal bool IsSetDBInstanceIdentifier() { return this._dbInstanceIdentifier != null; } /// /// Gets and sets the property RoleArn. /// /// The Amazon Resource Name (ARN) of the role. /// /// [AWSProperty(Max=256)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property SecretManagerArn. /// /// The Amazon Resource Name (ARN) of the AWS Secrets Manager role. /// /// [AWSProperty(Max=256)] public string SecretManagerArn { get { return this._secretManagerArn; } set { this._secretManagerArn = value; } } // Check to see if SecretManagerArn property is set internal bool IsSetSecretManagerArn() { return this._secretManagerArn != null; } /// /// Gets and sets the property TableName. /// /// The name of the table in the database. /// /// [AWSProperty(Min=1, Max=100)] public string TableName { get { return this._tableName; } set { this._tableName = value; } } // Check to see if TableName property is set internal bool IsSetTableName() { return this._tableName != null; } /// /// Gets and sets the property VpcConfiguration. /// /// An object containing information about the Amazon Virtual Private Cloud (VPC) configuration. /// /// public VpcConfiguration VpcConfiguration { get { return this._vpcConfiguration; } set { this._vpcConfiguration = value; } } // Check to see if VpcConfiguration property is set internal bool IsSetVpcConfiguration() { return this._vpcConfiguration != null; } } }