AWS SDK for C++  1.9.67
AWS SDK for C++
CapacityReservationTarget.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& GetCapacityReservationId() const{ return m_capacityReservationId; }
47 
51  inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
52 
56  inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
57 
61  inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
62 
66  inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
67 
71  inline CapacityReservationTarget& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
72 
76  inline CapacityReservationTarget& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
77 
81  inline CapacityReservationTarget& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
82 
83 
88  inline const Aws::String& GetCapacityReservationResourceGroupArn() const{ return m_capacityReservationResourceGroupArn; }
89 
94  inline bool CapacityReservationResourceGroupArnHasBeenSet() const { return m_capacityReservationResourceGroupArnHasBeenSet; }
95 
100  inline void SetCapacityReservationResourceGroupArn(const Aws::String& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = value; }
101 
106  inline void SetCapacityReservationResourceGroupArn(Aws::String&& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = std::move(value); }
107 
112  inline void SetCapacityReservationResourceGroupArn(const char* value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn.assign(value); }
113 
118  inline CapacityReservationTarget& WithCapacityReservationResourceGroupArn(const Aws::String& value) { SetCapacityReservationResourceGroupArn(value); return *this;}
119 
124  inline CapacityReservationTarget& WithCapacityReservationResourceGroupArn(Aws::String&& value) { SetCapacityReservationResourceGroupArn(std::move(value)); return *this;}
125 
130  inline CapacityReservationTarget& WithCapacityReservationResourceGroupArn(const char* value) { SetCapacityReservationResourceGroupArn(value); return *this;}
131 
132  private:
133 
134  Aws::String m_capacityReservationId;
135  bool m_capacityReservationIdHasBeenSet;
136 
137  Aws::String m_capacityReservationResourceGroupArn;
138  bool m_capacityReservationResourceGroupArnHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace EC2
143 } // namespace Aws
Aws::EC2::Model::CapacityReservationTarget::SetCapacityReservationId
void SetCapacityReservationId(const char *value)
Definition: CapacityReservationTarget.h:66
Aws::EC2::Model::CapacityReservationTarget
Definition: CapacityReservationTarget.h:33
Aws::EC2::Model::CapacityReservationTarget::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(const Aws::String &value)
Definition: CapacityReservationTarget.h:100
Aws::EC2::Model::CapacityReservationTarget::WithCapacityReservationResourceGroupArn
CapacityReservationTarget & WithCapacityReservationResourceGroupArn(Aws::String &&value)
Definition: CapacityReservationTarget.h:124
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::CapacityReservationTarget::GetCapacityReservationResourceGroupArn
const Aws::String & GetCapacityReservationResourceGroupArn() const
Definition: CapacityReservationTarget.h:88
Aws::EC2::Model::CapacityReservationTarget::WithCapacityReservationResourceGroupArn
CapacityReservationTarget & WithCapacityReservationResourceGroupArn(const Aws::String &value)
Definition: CapacityReservationTarget.h:118
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CapacityReservationTarget::WithCapacityReservationId
CapacityReservationTarget & WithCapacityReservationId(Aws::String &&value)
Definition: CapacityReservationTarget.h:76
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CapacityReservationTarget::CapacityReservationTarget
CapacityReservationTarget()
Aws::EC2::Model::CapacityReservationTarget::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CapacityReservationTarget::CapacityReservationTarget
CapacityReservationTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationTarget::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(const char *value)
Definition: CapacityReservationTarget.h:112
Aws::EC2::Model::CapacityReservationTarget::SetCapacityReservationId
void SetCapacityReservationId(Aws::String &&value)
Definition: CapacityReservationTarget.h:61
AWSString.h
Aws::EC2::Model::CapacityReservationTarget::operator=
CapacityReservationTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationTarget::WithCapacityReservationId
CapacityReservationTarget & WithCapacityReservationId(const char *value)
Definition: CapacityReservationTarget.h:81
Aws::EC2::Model::CapacityReservationTarget::SetCapacityReservationId
void SetCapacityReservationId(const Aws::String &value)
Definition: CapacityReservationTarget.h:56
Aws::EC2::Model::CapacityReservationTarget::WithCapacityReservationResourceGroupArn
CapacityReservationTarget & WithCapacityReservationResourceGroupArn(const char *value)
Definition: CapacityReservationTarget.h:130
Aws::EC2::Model::CapacityReservationTarget::WithCapacityReservationId
CapacityReservationTarget & WithCapacityReservationId(const Aws::String &value)
Definition: CapacityReservationTarget.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CapacityReservationTarget::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(Aws::String &&value)
Definition: CapacityReservationTarget.h:106
Aws::EC2::Model::CapacityReservationTarget::CapacityReservationIdHasBeenSet
bool CapacityReservationIdHasBeenSet() const
Definition: CapacityReservationTarget.h:51
Aws::EC2::Model::CapacityReservationTarget::CapacityReservationResourceGroupArnHasBeenSet
bool CapacityReservationResourceGroupArnHasBeenSet() const
Definition: CapacityReservationTarget.h:94
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::CapacityReservationTarget::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h
Aws::EC2::Model::CapacityReservationTarget::GetCapacityReservationId
const Aws::String & GetCapacityReservationId() const
Definition: CapacityReservationTarget.h:46