AWS SDK for C++  1.9.68
AWS SDK for C++
ReservedInstancesModificationResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
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 
48  inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; }
49 
55  inline bool ReservedInstancesIdHasBeenSet() const { return m_reservedInstancesIdHasBeenSet; }
56 
62  inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
63 
69  inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = std::move(value); }
70 
76  inline void SetReservedInstancesId(const char* value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId.assign(value); }
77 
83  inline ReservedInstancesModificationResponse& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;}
84 
90  inline ReservedInstancesModificationResponse& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(std::move(value)); return *this;}
91 
97  inline ReservedInstancesModificationResponse& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;}
98 
99 
104  inline const ReservedInstancesConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
105 
110  inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
111 
116  inline void SetTargetConfiguration(const ReservedInstancesConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
117 
122  inline void SetTargetConfiguration(ReservedInstancesConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); }
123 
128  inline ReservedInstancesModificationResponse& WithTargetConfiguration(const ReservedInstancesConfiguration& value) { SetTargetConfiguration(value); return *this;}
129 
134  inline ReservedInstancesModificationResponse& WithTargetConfiguration(ReservedInstancesConfiguration&& value) { SetTargetConfiguration(std::move(value)); return *this;}
135 
136  private:
137 
138  Aws::String m_reservedInstancesId;
139  bool m_reservedInstancesIdHasBeenSet;
140 
141  ReservedInstancesConfiguration m_targetConfiguration;
142  bool m_targetConfigurationHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace EC2
147 } // namespace Aws
Aws::EC2::Model::ReservedInstancesModificationResponse::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ReservedInstancesModificationResponse::ReservedInstancesIdHasBeenSet
bool ReservedInstancesIdHasBeenSet() const
Definition: ReservedInstancesModificationResponse.h:55
Aws::EC2::Model::ReservedInstancesModificationResponse::WithTargetConfiguration
ReservedInstancesModificationResponse & WithTargetConfiguration(const ReservedInstancesConfiguration &value)
Definition: ReservedInstancesModificationResponse.h:128
Aws::EC2::Model::ReservedInstancesModificationResponse::SetReservedInstancesId
void SetReservedInstancesId(const Aws::String &value)
Definition: ReservedInstancesModificationResponse.h:62
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReservedInstancesModificationResponse::ReservedInstancesModificationResponse
ReservedInstancesModificationResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::ReservedInstancesModificationResponse::SetTargetConfiguration
void SetTargetConfiguration(ReservedInstancesConfiguration &&value)
Definition: ReservedInstancesModificationResponse.h:122
Aws::EC2::Model::ReservedInstancesModificationResponse::TargetConfigurationHasBeenSet
bool TargetConfigurationHasBeenSet() const
Definition: ReservedInstancesModificationResponse.h:110
Aws::EC2::Model::ReservedInstancesModificationResponse::SetReservedInstancesId
void SetReservedInstancesId(const char *value)
Definition: ReservedInstancesModificationResponse.h:76
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ReservedInstancesModificationResponse::WithTargetConfiguration
ReservedInstancesModificationResponse & WithTargetConfiguration(ReservedInstancesConfiguration &&value)
Definition: ReservedInstancesModificationResponse.h:134
Aws::EC2::Model::ReservedInstancesConfiguration
Definition: ReservedInstancesConfiguration.h:35
Aws::EC2::Model::ReservedInstancesModificationResponse::WithReservedInstancesId
ReservedInstancesModificationResponse & WithReservedInstancesId(Aws::String &&value)
Definition: ReservedInstancesModificationResponse.h:90
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ReservedInstancesModificationResponse
Definition: ReservedInstancesModificationResponse.h:33
AWSString.h
Aws::EC2::Model::ReservedInstancesModificationResponse::GetReservedInstancesId
const Aws::String & GetReservedInstancesId() const
Definition: ReservedInstancesModificationResponse.h:48
Aws::EC2::Model::ReservedInstancesModificationResponse::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ReservedInstancesModificationResponse::SetReservedInstancesId
void SetReservedInstancesId(Aws::String &&value)
Definition: ReservedInstancesModificationResponse.h:69
Aws::EC2::Model::ReservedInstancesModificationResponse::GetTargetConfiguration
const ReservedInstancesConfiguration & GetTargetConfiguration() const
Definition: ReservedInstancesModificationResponse.h:104
Aws
Definition: AccessManagementClient.h:15
ReservedInstancesConfiguration.h
Aws::EC2::Model::ReservedInstancesModificationResponse::operator=
ReservedInstancesModificationResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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::ReservedInstancesModificationResponse::WithReservedInstancesId
ReservedInstancesModificationResponse & WithReservedInstancesId(const Aws::String &value)
Definition: ReservedInstancesModificationResponse.h:83
EC2_EXPORTS.h
Aws::EC2::Model::ReservedInstancesModificationResponse::ReservedInstancesModificationResponse
ReservedInstancesModificationResponse()
Aws::EC2::Model::ReservedInstancesModificationResponse::SetTargetConfiguration
void SetTargetConfiguration(const ReservedInstancesConfiguration &value)
Definition: ReservedInstancesModificationResponse.h:116
Aws::EC2::Model::ReservedInstancesModificationResponse::WithReservedInstancesId
ReservedInstancesModificationResponse & WithReservedInstancesId(const char *value)
Definition: ReservedInstancesModificationResponse.h:97