/* * 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 principal. /// public partial class AllowedPrincipal { private string _principal; private PrincipalType _principalType; private string _serviceId; private string _servicePermissionId; private List _tags = new List(); /// /// Gets and sets the property Principal. /// /// The Amazon Resource Name (ARN) of the principal. /// /// public string Principal { get { return this._principal; } set { this._principal = value; } } // Check to see if Principal property is set internal bool IsSetPrincipal() { return this._principal != null; } /// /// Gets and sets the property PrincipalType. /// /// The type of principal. /// /// public PrincipalType PrincipalType { get { return this._principalType; } set { this._principalType = value; } } // Check to see if PrincipalType property is set internal bool IsSetPrincipalType() { return this._principalType != null; } /// /// Gets and sets the property ServiceId. /// /// The ID of the service. /// /// public string ServiceId { get { return this._serviceId; } set { this._serviceId = value; } } // Check to see if ServiceId property is set internal bool IsSetServiceId() { return this._serviceId != null; } /// /// Gets and sets the property ServicePermissionId. /// /// The ID of the service permission. /// /// public string ServicePermissionId { get { return this._servicePermissionId; } set { this._servicePermissionId = value; } } // Check to see if ServicePermissionId property is set internal bool IsSetServicePermissionId() { return this._servicePermissionId != null; } /// /// Gets and sets the property Tags. /// /// The tags. /// /// 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; } } }