/*
* 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 budgets-2016-10-20.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.Budgets.Model
{
///
/// The Identity and Access Management (IAM) action definition details.
///
public partial class IamActionDefinition
{
private List _groups = new List();
private string _policyArn;
private List _roles = new List();
private List _users = new List();
///
/// Gets and sets the property Groups.
///
/// A list of groups to be attached. There must be at least one group.
///
///
[AWSProperty(Min=1, Max=100)]
public List Groups
{
get { return this._groups; }
set { this._groups = value; }
}
// Check to see if Groups property is set
internal bool IsSetGroups()
{
return this._groups != null && this._groups.Count > 0;
}
///
/// Gets and sets the property PolicyArn.
///
/// The Amazon Resource Name (ARN) of the policy to be attached.
///
///
[AWSProperty(Required=true, Min=25, Max=684)]
public string PolicyArn
{
get { return this._policyArn; }
set { this._policyArn = value; }
}
// Check to see if PolicyArn property is set
internal bool IsSetPolicyArn()
{
return this._policyArn != null;
}
///
/// Gets and sets the property Roles.
///
/// A list of roles to be attached. There must be at least one role.
///
///
[AWSProperty(Min=1, Max=100)]
public List Roles
{
get { return this._roles; }
set { this._roles = value; }
}
// Check to see if Roles property is set
internal bool IsSetRoles()
{
return this._roles != null && this._roles.Count > 0;
}
///
/// Gets and sets the property Users.
///
/// A list of users to be attached. There must be at least one user.
///
///
[AWSProperty(Min=1, Max=100)]
public List Users
{
get { return this._users; }
set { this._users = value; }
}
// Check to see if Users property is set
internal bool IsSetUsers()
{
return this._users != null && this._users.Count > 0;
}
}
}