AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PlacementGroupInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/PlacementGroupStrategy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API PlacementGroupInfo();
37 AWS_EC2_API PlacementGroupInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::Vector<PlacementGroupStrategy>& GetSupportedStrategies() const{ return m_supportedStrategies; }
49 inline bool SupportedStrategiesHasBeenSet() const { return m_supportedStrategiesHasBeenSet; }
50 inline void SetSupportedStrategies(const Aws::Vector<PlacementGroupStrategy>& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies = value; }
51 inline void SetSupportedStrategies(Aws::Vector<PlacementGroupStrategy>&& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies = std::move(value); }
54 inline PlacementGroupInfo& AddSupportedStrategies(const PlacementGroupStrategy& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies.push_back(value); return *this; }
55 inline PlacementGroupInfo& AddSupportedStrategies(PlacementGroupStrategy&& value) { m_supportedStrategiesHasBeenSet = true; m_supportedStrategies.push_back(std::move(value)); return *this; }
57 private:
58
59 Aws::Vector<PlacementGroupStrategy> m_supportedStrategies;
60 bool m_supportedStrategiesHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace EC2
65} // namespace Aws
PlacementGroupInfo & AddSupportedStrategies(const PlacementGroupStrategy &value)
PlacementGroupInfo & WithSupportedStrategies(const Aws::Vector< PlacementGroupStrategy > &value)
void SetSupportedStrategies(Aws::Vector< PlacementGroupStrategy > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PlacementGroupInfo & AddSupportedStrategies(PlacementGroupStrategy &&value)
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) const
PlacementGroupInfo & WithSupportedStrategies(Aws::Vector< PlacementGroupStrategy > &&value)
void SetSupportedStrategies(const Aws::Vector< PlacementGroupStrategy > &value)
const Aws::Vector< PlacementGroupStrategy > & GetSupportedStrategies() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream