AWS SDK for C++  1.9.75
AWS SDK for C++
CapacityReservationTargetResponse.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 CapacityReservationTargetResponse& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
72 
76  inline CapacityReservationTargetResponse& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
77 
81  inline CapacityReservationTargetResponse& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
82 
83 
87  inline const Aws::String& GetCapacityReservationResourceGroupArn() const{ return m_capacityReservationResourceGroupArn; }
88 
92  inline bool CapacityReservationResourceGroupArnHasBeenSet() const { return m_capacityReservationResourceGroupArnHasBeenSet; }
93 
97  inline void SetCapacityReservationResourceGroupArn(const Aws::String& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = value; }
98 
102  inline void SetCapacityReservationResourceGroupArn(Aws::String&& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = std::move(value); }
103 
107  inline void SetCapacityReservationResourceGroupArn(const char* value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn.assign(value); }
108 
112  inline CapacityReservationTargetResponse& WithCapacityReservationResourceGroupArn(const Aws::String& value) { SetCapacityReservationResourceGroupArn(value); return *this;}
113 
117  inline CapacityReservationTargetResponse& WithCapacityReservationResourceGroupArn(Aws::String&& value) { SetCapacityReservationResourceGroupArn(std::move(value)); return *this;}
118 
122  inline CapacityReservationTargetResponse& WithCapacityReservationResourceGroupArn(const char* value) { SetCapacityReservationResourceGroupArn(value); return *this;}
123 
124  private:
125 
126  Aws::String m_capacityReservationId;
127  bool m_capacityReservationIdHasBeenSet;
128 
129  Aws::String m_capacityReservationResourceGroupArn;
130  bool m_capacityReservationResourceGroupArnHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EC2
135 } // namespace Aws
Aws::EC2::Model::CapacityReservationTargetResponse::SetCapacityReservationId
void SetCapacityReservationId(Aws::String &&value)
Definition: CapacityReservationTargetResponse.h:61
Aws::EC2::Model::CapacityReservationTargetResponse::SetCapacityReservationId
void SetCapacityReservationId(const char *value)
Definition: CapacityReservationTargetResponse.h:66
Aws::EC2::Model::CapacityReservationTargetResponse::CapacityReservationResourceGroupArnHasBeenSet
bool CapacityReservationResourceGroupArnHasBeenSet() const
Definition: CapacityReservationTargetResponse.h:92
Aws::EC2::Model::CapacityReservationTargetResponse::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CapacityReservationTargetResponse::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(const char *value)
Definition: CapacityReservationTargetResponse.h:107
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CapacityReservationTargetResponse::CapacityReservationTargetResponse
CapacityReservationTargetResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationTargetResponse::WithCapacityReservationResourceGroupArn
CapacityReservationTargetResponse & WithCapacityReservationResourceGroupArn(Aws::String &&value)
Definition: CapacityReservationTargetResponse.h:117
Aws::EC2::Model::CapacityReservationTargetResponse::CapacityReservationTargetResponse
CapacityReservationTargetResponse()
AWSStreamFwd.h
Aws::EC2::Model::CapacityReservationTargetResponse::WithCapacityReservationResourceGroupArn
CapacityReservationTargetResponse & WithCapacityReservationResourceGroupArn(const Aws::String &value)
Definition: CapacityReservationTargetResponse.h:112
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CapacityReservationTargetResponse::CapacityReservationIdHasBeenSet
bool CapacityReservationIdHasBeenSet() const
Definition: CapacityReservationTargetResponse.h:51
Aws::EC2::Model::CapacityReservationTargetResponse::operator=
CapacityReservationTargetResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationTargetResponse::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CapacityReservationTargetResponse::WithCapacityReservationId
CapacityReservationTargetResponse & WithCapacityReservationId(const char *value)
Definition: CapacityReservationTargetResponse.h:81
Aws::EC2::Model::CapacityReservationTargetResponse::SetCapacityReservationId
void SetCapacityReservationId(const Aws::String &value)
Definition: CapacityReservationTargetResponse.h:56
AWSString.h
Aws::EC2::Model::CapacityReservationTargetResponse::WithCapacityReservationId
CapacityReservationTargetResponse & WithCapacityReservationId(const Aws::String &value)
Definition: CapacityReservationTargetResponse.h:71
Aws::EC2::Model::CapacityReservationTargetResponse::GetCapacityReservationId
const Aws::String & GetCapacityReservationId() const
Definition: CapacityReservationTargetResponse.h:46
Aws::EC2::Model::CapacityReservationTargetResponse
Definition: CapacityReservationTargetResponse.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CapacityReservationTargetResponse::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(Aws::String &&value)
Definition: CapacityReservationTargetResponse.h:102
Aws::EC2::Model::CapacityReservationTargetResponse::WithCapacityReservationResourceGroupArn
CapacityReservationTargetResponse & WithCapacityReservationResourceGroupArn(const char *value)
Definition: CapacityReservationTargetResponse.h:122
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CapacityReservationTargetResponse::WithCapacityReservationId
CapacityReservationTargetResponse & WithCapacityReservationId(Aws::String &&value)
Definition: CapacityReservationTargetResponse.h:76
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::CapacityReservationTargetResponse::GetCapacityReservationResourceGroupArn
const Aws::String & GetCapacityReservationResourceGroupArn() const
Definition: CapacityReservationTargetResponse.h:87
Aws::EC2::Model::CapacityReservationTargetResponse::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(const Aws::String &value)
Definition: CapacityReservationTargetResponse.h:97