/* * 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 ec2-2016-11-15.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.EC2.Model { /// /// Describes a placement group. /// public partial class PlacementGroup { private string _groupArn; private string _groupId; private string _groupName; private int? _partitionCount; private SpreadLevel _spreadLevel; private PlacementGroupState _state; private PlacementStrategy _strategy; private List _tags = new List(); /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public PlacementGroup() { } /// /// Instantiates PlacementGroup with the parameterized properties /// /// The name of the placement group. public PlacementGroup(string groupName) { _groupName = groupName; } /// /// Gets and sets the property GroupArn. /// /// The Amazon Resource Name (ARN) of the placement group. /// /// public string GroupArn { get { return this._groupArn; } set { this._groupArn = value; } } // Check to see if GroupArn property is set internal bool IsSetGroupArn() { return this._groupArn != null; } /// /// Gets and sets the property GroupId. /// /// The ID of the placement group. /// /// public string GroupId { get { return this._groupId; } set { this._groupId = value; } } // Check to see if GroupId property is set internal bool IsSetGroupId() { return this._groupId != null; } /// /// Gets and sets the property GroupName. /// /// The name of the placement group. /// /// public string GroupName { get { return this._groupName; } set { this._groupName = value; } } // Check to see if GroupName property is set internal bool IsSetGroupName() { return this._groupName != null; } /// /// Gets and sets the property PartitionCount. /// /// The number of partitions. Valid only if strategy is set to partition. /// /// public int PartitionCount { get { return this._partitionCount.GetValueOrDefault(); } set { this._partitionCount = value; } } // Check to see if PartitionCount property is set internal bool IsSetPartitionCount() { return this._partitionCount.HasValue; } /// /// Gets and sets the property SpreadLevel. /// /// The spread level for the placement group. Only Outpost placement groups can /// be spread across hosts. /// /// public SpreadLevel SpreadLevel { get { return this._spreadLevel; } set { this._spreadLevel = value; } } // Check to see if SpreadLevel property is set internal bool IsSetSpreadLevel() { return this._spreadLevel != null; } /// /// Gets and sets the property State. /// /// The state of the placement group. /// /// public PlacementGroupState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property Strategy. /// /// The placement strategy. /// /// public PlacementStrategy Strategy { get { return this._strategy; } set { this._strategy = value; } } // Check to see if Strategy property is set internal bool IsSetStrategy() { return this._strategy != null; } /// /// Gets and sets the property Tags. /// /// Any tags applied to the placement group. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }