AWS SDK for C++  1.9.102
AWS SDK for C++
CapacityReservationGroup.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& GetGroupArn() const{ return m_groupArn; }
47 
51  inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; }
52 
56  inline void SetGroupArn(const Aws::String& value) { m_groupArnHasBeenSet = true; m_groupArn = value; }
57 
61  inline void SetGroupArn(Aws::String&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::move(value); }
62 
66  inline void SetGroupArn(const char* value) { m_groupArnHasBeenSet = true; m_groupArn.assign(value); }
67 
71  inline CapacityReservationGroup& WithGroupArn(const Aws::String& value) { SetGroupArn(value); return *this;}
72 
76  inline CapacityReservationGroup& WithGroupArn(Aws::String&& value) { SetGroupArn(std::move(value)); return *this;}
77 
81  inline CapacityReservationGroup& WithGroupArn(const char* value) { SetGroupArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
88 
92  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
93 
97  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
98 
102  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
103 
107  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
108 
112  inline CapacityReservationGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
113 
117  inline CapacityReservationGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
118 
122  inline CapacityReservationGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
123 
124  private:
125 
126  Aws::String m_groupArn;
127  bool m_groupArnHasBeenSet;
128 
129  Aws::String m_ownerId;
130  bool m_ownerIdHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EC2
135 } // namespace Aws
Aws::EC2::Model::CapacityReservationGroup::SetGroupArn
void SetGroupArn(const Aws::String &value)
Definition: CapacityReservationGroup.h:56
Aws::EC2::Model::CapacityReservationGroup::WithGroupArn
CapacityReservationGroup & WithGroupArn(const char *value)
Definition: CapacityReservationGroup.h:81
Aws::EC2::Model::CapacityReservationGroup::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: CapacityReservationGroup.h:87
Aws::EC2::Model::CapacityReservationGroup::SetGroupArn
void SetGroupArn(const char *value)
Definition: CapacityReservationGroup.h:66
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CapacityReservationGroup::WithOwnerId
CapacityReservationGroup & WithOwnerId(Aws::String &&value)
Definition: CapacityReservationGroup.h:117
AWSStreamFwd.h
Aws::EC2::Model::CapacityReservationGroup::WithOwnerId
CapacityReservationGroup & WithOwnerId(const char *value)
Definition: CapacityReservationGroup.h:122
Aws::EC2::Model::CapacityReservationGroup
Definition: CapacityReservationGroup.h:33
Aws::EC2::Model::CapacityReservationGroup::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: CapacityReservationGroup.h:102
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CapacityReservationGroup::SetOwnerId
void SetOwnerId(const char *value)
Definition: CapacityReservationGroup.h:107
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CapacityReservationGroup::WithGroupArn
CapacityReservationGroup & WithGroupArn(Aws::String &&value)
Definition: CapacityReservationGroup.h:76
Aws::EC2::Model::CapacityReservationGroup::WithOwnerId
CapacityReservationGroup & WithOwnerId(const Aws::String &value)
Definition: CapacityReservationGroup.h:112
Aws::EC2::Model::CapacityReservationGroup::CapacityReservationGroup
CapacityReservationGroup()
Aws::EC2::Model::CapacityReservationGroup::WithGroupArn
CapacityReservationGroup & WithGroupArn(const Aws::String &value)
Definition: CapacityReservationGroup.h:71
AWSString.h
Aws::EC2::Model::CapacityReservationGroup::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: CapacityReservationGroup.h:92
Aws::EC2::Model::CapacityReservationGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CapacityReservationGroup::GetGroupArn
const Aws::String & GetGroupArn() const
Definition: CapacityReservationGroup.h:46
Aws::EC2::Model::CapacityReservationGroup::GroupArnHasBeenSet
bool GroupArnHasBeenSet() const
Definition: CapacityReservationGroup.h:51
Aws
Definition: AccessManagementClient.h:15
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::CapacityReservationGroup::CapacityReservationGroup
CapacityReservationGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationGroup::operator=
CapacityReservationGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h
Aws::EC2::Model::CapacityReservationGroup::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: CapacityReservationGroup.h:97
Aws::EC2::Model::CapacityReservationGroup::SetGroupArn
void SetGroupArn(Aws::String &&value)
Definition: CapacityReservationGroup.h:61