/*
* 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 serverlessrepo-2017-09-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.ServerlessApplicationRepository.Model
{
///
/// Policy statement applied to the application.
///
public partial class ApplicationPolicyStatement
{
private List _actions = new List();
private List _principalOrgIDs = new List();
private List _principals = new List();
private string _statementId;
///
/// Gets and sets the property Actions.
///
/// For the list of actions supported for this operation, see Application
/// Permissions.
///
///
[AWSProperty(Required=true)]
public List Actions
{
get { return this._actions; }
set { this._actions = value; }
}
// Check to see if Actions property is set
internal bool IsSetActions()
{
return this._actions != null && this._actions.Count > 0;
}
///
/// Gets and sets the property PrincipalOrgIDs.
///
/// An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID
/// global condition key.
///
///
public List PrincipalOrgIDs
{
get { return this._principalOrgIDs; }
set { this._principalOrgIDs = value; }
}
// Check to see if PrincipalOrgIDs property is set
internal bool IsSetPrincipalOrgIDs()
{
return this._principalOrgIDs != null && this._principalOrgIDs.Count > 0;
}
///
/// Gets and sets the property Principals.
///
/// An array of AWS account IDs, or * to make the application public.
///
///
[AWSProperty(Required=true)]
public List Principals
{
get { return this._principals; }
set { this._principals = value; }
}
// Check to see if Principals property is set
internal bool IsSetPrincipals()
{
return this._principals != null && this._principals.Count > 0;
}
///
/// Gets and sets the property StatementId.
///
/// A unique ID for the 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;
}
}
}