AWS SDK for C++  1.9.108
AWS SDK for C++
ScheduledInstancesPlacement.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
47 
51  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 
56  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
57 
61  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
62 
66  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
67 
71  inline ScheduledInstancesPlacement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
72 
76  inline ScheduledInstancesPlacement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
77 
81  inline ScheduledInstancesPlacement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
82 
83 
87  inline const Aws::String& GetGroupName() const{ return m_groupName; }
88 
92  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
93 
97  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
98 
102  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
103 
107  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
108 
112  inline ScheduledInstancesPlacement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
113 
117  inline ScheduledInstancesPlacement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
118 
122  inline ScheduledInstancesPlacement& WithGroupName(const char* value) { SetGroupName(value); return *this;}
123 
124  private:
125 
126  Aws::String m_availabilityZone;
127  bool m_availabilityZoneHasBeenSet;
128 
129  Aws::String m_groupName;
130  bool m_groupNameHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EC2
135 } // namespace Aws
Aws::EC2::Model::ScheduledInstancesPlacement::WithGroupName
ScheduledInstancesPlacement & WithGroupName(const Aws::String &value)
Definition: ScheduledInstancesPlacement.h:112
Aws::EC2::Model::ScheduledInstancesPlacement::WithAvailabilityZone
ScheduledInstancesPlacement & WithAvailabilityZone(Aws::String &&value)
Definition: ScheduledInstancesPlacement.h:76
Aws::EC2::Model::ScheduledInstancesPlacement::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: ScheduledInstancesPlacement.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ScheduledInstancesPlacement::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: ScheduledInstancesPlacement.h:51
Aws::EC2::Model::ScheduledInstancesPlacement::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: ScheduledInstancesPlacement.h:92
Aws::EC2::Model::ScheduledInstancesPlacement::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: ScheduledInstancesPlacement.h:61
AWSStreamFwd.h
Aws::EC2::Model::ScheduledInstancesPlacement::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ScheduledInstancesPlacement::ScheduledInstancesPlacement
ScheduledInstancesPlacement(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstancesPlacement::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ScheduledInstancesPlacement::WithGroupName
ScheduledInstancesPlacement & WithGroupName(const char *value)
Definition: ScheduledInstancesPlacement.h:122
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ScheduledInstancesPlacement::SetGroupName
void SetGroupName(const char *value)
Definition: ScheduledInstancesPlacement.h:107
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ScheduledInstancesPlacement::WithGroupName
ScheduledInstancesPlacement & WithGroupName(Aws::String &&value)
Definition: ScheduledInstancesPlacement.h:117
Aws::EC2::Model::ScheduledInstancesPlacement::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: ScheduledInstancesPlacement.h:102
AWSString.h
Aws::EC2::Model::ScheduledInstancesPlacement::operator=
ScheduledInstancesPlacement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstancesPlacement::ScheduledInstancesPlacement
ScheduledInstancesPlacement()
Aws::EC2::Model::ScheduledInstancesPlacement::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: ScheduledInstancesPlacement.h:66
Aws::EC2::Model::ScheduledInstancesPlacement::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: ScheduledInstancesPlacement.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ScheduledInstancesPlacement::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: ScheduledInstancesPlacement.h:97
Aws::EC2::Model::ScheduledInstancesPlacement::WithAvailabilityZone
ScheduledInstancesPlacement & WithAvailabilityZone(const Aws::String &value)
Definition: ScheduledInstancesPlacement.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ScheduledInstancesPlacement::GetGroupName
const Aws::String & GetGroupName() const
Definition: ScheduledInstancesPlacement.h:87
EC2_EXPORTS.h
Aws::EC2::Model::ScheduledInstancesPlacement
Definition: ScheduledInstancesPlacement.h:33
Aws::EC2::Model::ScheduledInstancesPlacement::WithAvailabilityZone
ScheduledInstancesPlacement & WithAvailabilityZone(const char *value)
Definition: ScheduledInstancesPlacement.h:81