/* * 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 rds-2014-10-31.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.RDS.Model { /// /// Contains the details for an Amazon RDS DB security group. /// /// /// /// This data type is used as a response element in the DescribeDBSecurityGroups /// action. /// /// public partial class DBSecurityGroup { private string _dbSecurityGroupArn; private string _dbSecurityGroupDescription; private string _dbSecurityGroupName; private List _ec2SecurityGroups = new List(); private List _ipRanges = new List(); private string _ownerId; private string _vpcId; /// /// Gets and sets the property DBSecurityGroupArn. /// /// The Amazon Resource Name (ARN) for the DB security group. /// /// public string DBSecurityGroupArn { get { return this._dbSecurityGroupArn; } set { this._dbSecurityGroupArn = value; } } // Check to see if DBSecurityGroupArn property is set internal bool IsSetDBSecurityGroupArn() { return this._dbSecurityGroupArn != null; } /// /// Gets and sets the property DBSecurityGroupDescription. /// /// Provides the description of the DB security group. /// /// public string DBSecurityGroupDescription { get { return this._dbSecurityGroupDescription; } set { this._dbSecurityGroupDescription = value; } } // Check to see if DBSecurityGroupDescription property is set internal bool IsSetDBSecurityGroupDescription() { return this._dbSecurityGroupDescription != null; } /// /// Gets and sets the property DBSecurityGroupName. /// /// Specifies the name of the DB security group. /// /// public string DBSecurityGroupName { get { return this._dbSecurityGroupName; } set { this._dbSecurityGroupName = value; } } // Check to see if DBSecurityGroupName property is set internal bool IsSetDBSecurityGroupName() { return this._dbSecurityGroupName != null; } /// /// Gets and sets the property EC2SecurityGroups. /// /// Contains a list of EC2SecurityGroup elements. /// /// public List EC2SecurityGroups { get { return this._ec2SecurityGroups; } set { this._ec2SecurityGroups = value; } } // Check to see if EC2SecurityGroups property is set internal bool IsSetEC2SecurityGroups() { return this._ec2SecurityGroups != null && this._ec2SecurityGroups.Count > 0; } /// /// Gets and sets the property IPRanges. /// /// Contains a list of IPRange elements. /// /// public List IPRanges { get { return this._ipRanges; } set { this._ipRanges = value; } } // Check to see if IPRanges property is set internal bool IsSetIPRanges() { return this._ipRanges != null && this._ipRanges.Count > 0; } /// /// Gets and sets the property OwnerId. /// /// Provides the Amazon Web Services ID of the owner of a specific DB security group. /// /// public string OwnerId { get { return this._ownerId; } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId != null; } /// /// Gets and sets the property VpcId. /// /// Provides the VpcId of the DB security group. /// /// public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }