/*
* 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 signer-2017-08-25.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.Signer.Model
{
///
/// A cross-account permission for a signing profile.
///
public partial class Permission
{
private string _action;
private string _principal;
private string _profileVersion;
private string _statementId;
///
/// Gets and sets the property Action.
///
/// An AWS Signer action permitted as part of cross-account permissions.
///
///
public string Action
{
get { return this._action; }
set { this._action = value; }
}
// Check to see if Action property is set
internal bool IsSetAction()
{
return this._action != null;
}
///
/// Gets and sets the property Principal.
///
/// The AWS principal that has been granted a cross-account permission.
///
///
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 ProfileVersion.
///
/// The signing profile version that a permission applies to.
///
///
[AWSProperty(Min=10, Max=10)]
public string ProfileVersion
{
get { return this._profileVersion; }
set { this._profileVersion = value; }
}
// Check to see if ProfileVersion property is set
internal bool IsSetProfileVersion()
{
return this._profileVersion != null;
}
///
/// Gets and sets the property StatementId.
///
/// A unique identifier for a cross-account permission statement.
///
///
public string StatementId
{
get { return this._statementId; }
set { this._statementId = value; }
}
// Check to see if StatementId property is set
internal bool IsSetStatementId()
{
return this._statementId != null;
}
}
}