/*
* 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
{
///
/// Option details.
///
public partial class Option
{
private List _dbSecurityGroupMemberships = new List();
private string _optionDescription;
private string _optionName;
private List _optionSettings = new List();
private string _optionVersion;
private bool? _permanent;
private bool? _persistent;
private int? _port;
private List _vpcSecurityGroupMemberships = new List();
///
/// Gets and sets the property DBSecurityGroupMemberships.
///
/// If the option requires access to a port, then this DB security group allows access
/// to the port.
///
///
public List DBSecurityGroupMemberships
{
get { return this._dbSecurityGroupMemberships; }
set { this._dbSecurityGroupMemberships = value; }
}
// Check to see if DBSecurityGroupMemberships property is set
internal bool IsSetDBSecurityGroupMemberships()
{
return this._dbSecurityGroupMemberships != null && this._dbSecurityGroupMemberships.Count > 0;
}
///
/// Gets and sets the property OptionDescription.
///
/// The description of the option.
///
///
public string OptionDescription
{
get { return this._optionDescription; }
set { this._optionDescription = value; }
}
// Check to see if OptionDescription property is set
internal bool IsSetOptionDescription()
{
return this._optionDescription != null;
}
///
/// Gets and sets the property OptionName.
///
/// The name of the option.
///
///
public string OptionName
{
get { return this._optionName; }
set { this._optionName = value; }
}
// Check to see if OptionName property is set
internal bool IsSetOptionName()
{
return this._optionName != null;
}
///
/// Gets and sets the property OptionSettings.
///
/// The option settings for this option.
///
///
public List OptionSettings
{
get { return this._optionSettings; }
set { this._optionSettings = value; }
}
// Check to see if OptionSettings property is set
internal bool IsSetOptionSettings()
{
return this._optionSettings != null && this._optionSettings.Count > 0;
}
///
/// Gets and sets the property OptionVersion.
///
/// The version of the option.
///
///
public string OptionVersion
{
get { return this._optionVersion; }
set { this._optionVersion = value; }
}
// Check to see if OptionVersion property is set
internal bool IsSetOptionVersion()
{
return this._optionVersion != null;
}
///
/// Gets and sets the property Permanent.
///
/// Indicate if this option is permanent.
///
///
public bool Permanent
{
get { return this._permanent.GetValueOrDefault(); }
set { this._permanent = value; }
}
// Check to see if Permanent property is set
internal bool IsSetPermanent()
{
return this._permanent.HasValue;
}
///
/// Gets and sets the property Persistent.
///
/// Indicate if this option is persistent.
///
///
public bool Persistent
{
get { return this._persistent.GetValueOrDefault(); }
set { this._persistent = value; }
}
// Check to see if Persistent property is set
internal bool IsSetPersistent()
{
return this._persistent.HasValue;
}
///
/// Gets and sets the property Port.
///
/// If required, the port configured for this option to use.
///
///
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 VpcSecurityGroupMemberships.
///
/// If the option requires access to a port, then this VPC security group allows access
/// to the port.
///
///
public List VpcSecurityGroupMemberships
{
get { return this._vpcSecurityGroupMemberships; }
set { this._vpcSecurityGroupMemberships = value; }
}
// Check to see if VpcSecurityGroupMemberships property is set
internal bool IsSetVpcSecurityGroupMemberships()
{
return this._vpcSecurityGroupMemberships != null && this._vpcSecurityGroupMemberships.Count > 0;
}
}
}