AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ScheduledInstancesPlacement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API ScheduledInstancesPlacement() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
42 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
43 template <typename AvailabilityZoneT = Aws::String>
44 void SetAvailabilityZone(AvailabilityZoneT&& value) {
45 m_availabilityZoneHasBeenSet = true;
46 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
47 }
48 template <typename AvailabilityZoneT = Aws::String>
50 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetGroupName() const { return m_groupName; }
60 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
61 template <typename GroupNameT = Aws::String>
62 void SetGroupName(GroupNameT&& value) {
63 m_groupNameHasBeenSet = true;
64 m_groupName = std::forward<GroupNameT>(value);
65 }
66 template <typename GroupNameT = Aws::String>
68 SetGroupName(std::forward<GroupNameT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_availabilityZone;
74
75 Aws::String m_groupName;
76 bool m_availabilityZoneHasBeenSet = false;
77 bool m_groupNameHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
ScheduledInstancesPlacement & WithGroupName(GroupNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API ScheduledInstancesPlacement()=default
AWS_EC2_API ScheduledInstancesPlacement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ScheduledInstancesPlacement(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstancesPlacement & WithAvailabilityZone(AvailabilityZoneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream