/* * 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 { /// /// Container for the parameters to the ModifyVpcEndpointServicePermissions operation. /// Modifies the permissions for your VPC endpoint service. You can add or remove permissions /// for service consumers (Amazon Web Services accounts, users, and IAM roles) to connect /// to your endpoint service. /// /// /// /// If you grant permissions to all principals, the service is public. Any users who know /// the name of a public service can send a request to attach an endpoint. If the service /// does not require manual approval, attachments are automatically approved. /// /// public partial class ModifyVpcEndpointServicePermissionsRequest : AmazonEC2Request { private List _addAllowedPrincipals = new List(); private List _removeAllowedPrincipals = new List(); private string _serviceId; /// /// Gets and sets the property AddAllowedPrincipals. /// /// The Amazon Resource Names (ARN) of the principals. Permissions are granted to the /// principals in this list. To grant permissions to all principals, specify an asterisk /// (*). /// /// public List AddAllowedPrincipals { get { return this._addAllowedPrincipals; } set { this._addAllowedPrincipals = value; } } // Check to see if AddAllowedPrincipals property is set internal bool IsSetAddAllowedPrincipals() { return this._addAllowedPrincipals != null && this._addAllowedPrincipals.Count > 0; } /// /// Gets and sets the property RemoveAllowedPrincipals. /// /// The Amazon Resource Names (ARN) of the principals. Permissions are revoked for principals /// in this list. /// /// public List RemoveAllowedPrincipals { get { return this._removeAllowedPrincipals; } set { this._removeAllowedPrincipals = value; } } // Check to see if RemoveAllowedPrincipals property is set internal bool IsSetRemoveAllowedPrincipals() { return this._removeAllowedPrincipals != null && this._removeAllowedPrincipals.Count > 0; } /// /// Gets and sets the property ServiceId. /// /// The ID of the service. /// /// [AWSProperty(Required=true)] 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; } } }