/*
 * 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
{
    /// 
    /// Container for the parameters to the GetPermission operation.
    /// Retrieves the contents of a managed permission in JSON format.
    /// 
    public partial class GetPermissionRequest : AmazonRAMRequest
    {
        private string _permissionArn;
        private int? _permissionVersion;
        /// 
        /// Gets and sets the property PermissionArn. 
        /// 
        /// Specifies the Amazon
        /// Resource Name (ARN) of the permission whose contents you want to retrieve. To
        /// find the ARN for a permission, use either the ListPermissions operation or
        /// go to the Permissions
        /// library page in the RAM console and then choose the name of the permission. The
        /// ARN is displayed on the detail page.
        /// 
        /// 
        [AWSProperty(Required=true)]
        public string PermissionArn
        {
            get { return this._permissionArn; }
            set { this._permissionArn = value; }
        }
        // Check to see if PermissionArn property is set
        internal bool IsSetPermissionArn()
        {
            return this._permissionArn != null;
        }
        /// 
        /// Gets and sets the property PermissionVersion. 
        /// 
        /// Specifies the version number of the RAM permission to retrieve. If you don't specify
        /// this parameter, the operation retrieves the default version.
        /// 
        ///  
        /// 
        /// To see the list of available versions, use ListPermissionVersions.
        /// 
        /// 
        public int PermissionVersion
        {
            get { return this._permissionVersion.GetValueOrDefault(); }
            set { this._permissionVersion = value; }
        }
        // Check to see if PermissionVersion property is set
        internal bool IsSetPermissionVersion()
        {
            return this._permissionVersion.HasValue; 
        }
    }
}