AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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