/* * 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 iam-2010-05-08.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.IdentityManagement.Model { /// /// Contains information about a version of a managed policy. /// /// /// /// This data type is used as a response element in the CreatePolicyVersion, GetPolicyVersion, /// ListPolicyVersions, and GetAccountAuthorizationDetails operations. /// /// /// /// For more information about managed policies, refer to Managed /// policies and inline policies in the IAM User Guide. /// /// public partial class PolicyVersion { private DateTime? _createDate; private string _document; private bool? _isDefaultVersion; private string _versionId; /// /// Gets and sets the property CreateDate. /// /// The date and time, in ISO 8601 date-time /// format, when the policy version was created. /// /// public DateTime CreateDate { get { return this._createDate.GetValueOrDefault(); } set { this._createDate = value; } } // Check to see if CreateDate property is set internal bool IsSetCreateDate() { return this._createDate.HasValue; } /// /// Gets and sets the property Document. /// /// The policy document. /// /// /// /// The policy document is returned in the response to the GetPolicyVersion and /// GetAccountAuthorizationDetails operations. It is not returned in the response /// to the CreatePolicyVersion or ListPolicyVersions operations. /// /// /// /// The policy document returned in this structure is URL-encoded compliant with RFC /// 3986. You can use a URL decoding method to convert the policy back to plain JSON /// text. For example, if you use Java, you can use the decode method of /// the java.net.URLDecoder utility class in the Java SDK. Other languages /// and SDKs provide similar functionality. /// /// [AWSProperty(Min=1, Max=131072)] public string Document { get { return this._document; } set { this._document = value; } } // Check to see if Document property is set internal bool IsSetDocument() { return this._document != null; } /// /// Gets and sets the property IsDefaultVersion. /// /// Specifies whether the policy version is set as the policy's default version. /// /// public bool IsDefaultVersion { get { return this._isDefaultVersion.GetValueOrDefault(); } set { this._isDefaultVersion = value; } } // Check to see if IsDefaultVersion property is set internal bool IsSetIsDefaultVersion() { return this._isDefaultVersion.HasValue; } /// /// Gets and sets the property VersionId. /// /// The identifier for the policy version. /// /// /// /// Policy version identifiers always begin with v (always lowercase). When /// a policy is created, the first policy version is v1. /// /// public string VersionId { get { return this._versionId; } set { this._versionId = value; } } // Check to see if VersionId property is set internal bool IsSetVersionId() { return this._versionId != null; } } }