AWS SDK for C++  1.9.73
AWS SDK for C++
PlacementGroupInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Vector<PlacementGroupStrategy>& GetSupportedStrategies() const{ return m_supportedStrategies; }
48 
52  inline bool SupportedStrategiesHasBeenSet() const { return m_supportedStrategiesHasBeenSet; }
53 
57  inline void SetSupportedStrategies(const Aws::Vector<PlacementGroupStrategy>& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies = value; }
58 
62  inline void SetSupportedStrategies(Aws::Vector<PlacementGroupStrategy>&& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies = std::move(value); }
63 
67  inline PlacementGroupInfo& WithSupportedStrategies(const Aws::Vector<PlacementGroupStrategy>& value) { SetSupportedStrategies(value); return *this;}
68 
72  inline PlacementGroupInfo& WithSupportedStrategies(Aws::Vector<PlacementGroupStrategy>&& value) { SetSupportedStrategies(std::move(value)); return *this;}
73 
77  inline PlacementGroupInfo& AddSupportedStrategies(const PlacementGroupStrategy& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies.push_back(value); return *this; }
78 
82  inline PlacementGroupInfo& AddSupportedStrategies(PlacementGroupStrategy&& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies.push_back(std::move(value)); return *this; }
83 
84  private:
85 
86  Aws::Vector<PlacementGroupStrategy> m_supportedStrategies;
87  bool m_supportedStrategiesHasBeenSet;
88  };
89 
90 } // namespace Model
91 } // namespace EC2
92 } // namespace Aws
Aws::EC2::Model::PlacementGroupInfo::GetSupportedStrategies
const Aws::Vector< PlacementGroupStrategy > & GetSupportedStrategies() const
Definition: PlacementGroupInfo.h:47
Aws::EC2::Model::PlacementGroupInfo::AddSupportedStrategies
PlacementGroupInfo & AddSupportedStrategies(PlacementGroupStrategy &&value)
Definition: PlacementGroupInfo.h:82
Aws::EC2::Model::PlacementGroupInfo::SetSupportedStrategies
void SetSupportedStrategies(Aws::Vector< PlacementGroupStrategy > &&value)
Definition: PlacementGroupInfo.h:62
PlacementGroupStrategy.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::PlacementGroupInfo
Definition: PlacementGroupInfo.h:34
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PlacementGroupInfo::PlacementGroupInfo
PlacementGroupInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PlacementGroupInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PlacementGroupInfo::AddSupportedStrategies
PlacementGroupInfo & AddSupportedStrategies(const PlacementGroupStrategy &value)
Definition: PlacementGroupInfo.h:77
Aws::EC2::Model::PlacementGroupInfo::SetSupportedStrategies
void SetSupportedStrategies(const Aws::Vector< PlacementGroupStrategy > &value)
Definition: PlacementGroupInfo.h:57
Aws::EC2::Model::PlacementGroupInfo::operator=
PlacementGroupInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PlacementGroupInfo::PlacementGroupInfo
PlacementGroupInfo()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PlacementGroupInfo::SupportedStrategiesHasBeenSet
bool SupportedStrategiesHasBeenSet() const
Definition: PlacementGroupInfo.h:52
Aws::EC2::Model::PlacementGroupInfo::WithSupportedStrategies
PlacementGroupInfo & WithSupportedStrategies(const Aws::Vector< PlacementGroupStrategy > &value)
Definition: PlacementGroupInfo.h:67
Aws::EC2::Model::PlacementGroupInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::PlacementGroupStrategy
PlacementGroupStrategy
Definition: PlacementGroupStrategy.h:17
Aws::EC2::Model::PlacementGroupInfo::WithSupportedStrategies
PlacementGroupInfo & WithSupportedStrategies(Aws::Vector< PlacementGroupStrategy > &&value)
Definition: PlacementGroupInfo.h:72