/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Describes a security group.
///
public partial class SecurityGroup
{
private string _description;
private string _groupId;
private string _groupName;
private List _ipPermissions = new List();
private List _ipPermissionsEgress = new List();
private string _ownerId;
private List _tags = new List();
private string _vpcId;
///
/// Gets and sets the property Description.
///
/// A description of the security group.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property GroupId.
///
/// The ID of the security group.
///
///
public string GroupId
{
get { return this._groupId; }
set { this._groupId = value; }
}
// Check to see if GroupId property is set
internal bool IsSetGroupId()
{
return this._groupId != null;
}
///
/// Gets and sets the property GroupName.
///
/// The name of the security group.
///
///
public string GroupName
{
get { return this._groupName; }
set { this._groupName = value; }
}
// Check to see if GroupName property is set
internal bool IsSetGroupName()
{
return this._groupName != null;
}
///
/// Gets and sets the property IpPermissions.
///
/// The inbound rules associated with the security group.
///
///
public List IpPermissions
{
get { return this._ipPermissions; }
set { this._ipPermissions = value; }
}
// Check to see if IpPermissions property is set
internal bool IsSetIpPermissions()
{
return this._ipPermissions != null && this._ipPermissions.Count > 0;
}
///
/// Gets and sets the property IpPermissionsEgress.
///
/// The outbound rules associated with the security group.
///
///
public List IpPermissionsEgress
{
get { return this._ipPermissionsEgress; }
set { this._ipPermissionsEgress = value; }
}
// Check to see if IpPermissionsEgress property is set
internal bool IsSetIpPermissionsEgress()
{
return this._ipPermissionsEgress != null && this._ipPermissionsEgress.Count > 0;
}
///
/// Gets and sets the property OwnerId.
///
/// The Amazon Web Services account ID of the owner of the 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 Tags.
///
/// Any tags assigned to the security group.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property VpcId.
///
/// The ID of the VPC for the 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;
}
}
}