/* * 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 ram-2018-01-04.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.RAM.Model { /// /// An object that describes a managed permission associated with a resource share. /// public partial class AssociatedPermission { private string _arn; private bool? _defaultVersion; private PermissionFeatureSet _featureSet; private DateTime? _lastUpdatedTime; private string _permissionVersion; private string _resourceShareArn; private string _resourceType; private string _status; /// /// Gets and sets the property Arn. /// /// The Amazon /// Resource Name (ARN) of the associated managed permission. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property DefaultVersion. /// /// Indicates whether the associated resource share is using the default version of the /// permission. /// /// public bool DefaultVersion { get { return this._defaultVersion.GetValueOrDefault(); } set { this._defaultVersion = value; } } // Check to see if DefaultVersion property is set internal bool IsSetDefaultVersion() { return this._defaultVersion.HasValue; } /// /// Gets and sets the property FeatureSet. /// /// Indicates what features are available for this resource share. This parameter can /// have one of the following values: /// /// /// public PermissionFeatureSet FeatureSet { get { return this._featureSet; } set { this._featureSet = value; } } // Check to see if FeatureSet property is set internal bool IsSetFeatureSet() { return this._featureSet != null; } /// /// Gets and sets the property LastUpdatedTime. /// /// The date and time when the association between the permission and the resource share /// was last updated. /// /// public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// /// Gets and sets the property PermissionVersion. /// /// The version of the permission currently associated with the resource share. /// /// public string PermissionVersion { get { return this._permissionVersion; } set { this._permissionVersion = value; } } // Check to see if PermissionVersion property is set internal bool IsSetPermissionVersion() { return this._permissionVersion != null; } /// /// Gets and sets the property ResourceShareArn. /// /// The Amazon /// Resource Name (ARN) of a resource share associated with this permission. /// /// public string ResourceShareArn { get { return this._resourceShareArn; } set { this._resourceShareArn = value; } } // Check to see if ResourceShareArn property is set internal bool IsSetResourceShareArn() { return this._resourceShareArn != null; } /// /// Gets and sets the property ResourceType. /// /// The resource type to which this permission applies. /// /// public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property Status. /// /// The current status of the association between the permission and the resource share. /// The following are the possible values: /// /// /// public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }