/*
* 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
{
///
/// Container for the parameters to the AddProfilePermission operation.
/// Adds cross-account permissions to a signing profile.
///
public partial class AddProfilePermissionRequest : AmazonSignerRequest
{
private string _action;
private string _principal;
private string _profileName;
private string _profileVersion;
private string _revisionId;
private string _statementId;
///
/// Gets and sets the property Action.
///
/// The AWS Signer action permitted as part of cross-account permissions.
///
///
[AWSProperty(Required=true)]
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 receiving cross-account permissions. This may be an IAM role or
/// another AWS account ID.
///
///
[AWSProperty(Required=true)]
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 ProfileName.
///
/// The human-readable name of the signing profile.
///
///
[AWSProperty(Required=true, Min=2, Max=64)]
public string ProfileName
{
get { return this._profileName; }
set { this._profileName = value; }
}
// Check to see if ProfileName property is set
internal bool IsSetProfileName()
{
return this._profileName != null;
}
///
/// Gets and sets the property ProfileVersion.
///
/// The version of the signing profile.
///
///
[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 RevisionId.
///
/// A unique identifier for the current profile revision.
///
///
public string RevisionId
{
get { return this._revisionId; }
set { this._revisionId = value; }
}
// Check to see if RevisionId property is set
internal bool IsSetRevisionId()
{
return this._revisionId != null;
}
///
/// Gets and sets the property StatementId.
///
/// A unique identifier for the cross-account permission statement.
///
///
[AWSProperty(Required=true)]
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;
}
}
}