/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the placement group support of the instance type.

See * Also:

AWS * API Reference

*/ class PlacementGroupInfo { public: AWS_EC2_API PlacementGroupInfo(); AWS_EC2_API PlacementGroupInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API PlacementGroupInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The supported placement group types.

*/ inline const Aws::Vector& GetSupportedStrategies() const{ return m_supportedStrategies; } /** *

The supported placement group types.

*/ inline bool SupportedStrategiesHasBeenSet() const { return m_supportedStrategiesHasBeenSet; } /** *

The supported placement group types.

*/ inline void SetSupportedStrategies(const Aws::Vector& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies = value; } /** *

The supported placement group types.

*/ inline void SetSupportedStrategies(Aws::Vector&& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies = std::move(value); } /** *

The supported placement group types.

*/ inline PlacementGroupInfo& WithSupportedStrategies(const Aws::Vector& value) { SetSupportedStrategies(value); return *this;} /** *

The supported placement group types.

*/ inline PlacementGroupInfo& WithSupportedStrategies(Aws::Vector&& value) { SetSupportedStrategies(std::move(value)); return *this;} /** *

The supported placement group types.

*/ inline PlacementGroupInfo& AddSupportedStrategies(const PlacementGroupStrategy& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies.push_back(value); return *this; } /** *

The supported placement group types.

*/ inline PlacementGroupInfo& AddSupportedStrategies(PlacementGroupStrategy&& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies.push_back(std::move(value)); return *this; } private: Aws::Vector m_supportedStrategies; bool m_supportedStrategiesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws