AWS SDK for C++  1.9.104
AWS SDK for C++
PurchaseReservedDBInstancesOfferingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "PurchaseReservedDBInstancesOffering"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; }
49 
54  inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; }
55 
60  inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; }
61 
66  inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); }
67 
72  inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); }
73 
78  inline PurchaseReservedDBInstancesOfferingRequest& WithReservedDBInstancesOfferingId(const Aws::String& value) { SetReservedDBInstancesOfferingId(value); return *this;}
79 
84  inline PurchaseReservedDBInstancesOfferingRequest& WithReservedDBInstancesOfferingId(Aws::String&& value) { SetReservedDBInstancesOfferingId(std::move(value)); return *this;}
85 
90  inline PurchaseReservedDBInstancesOfferingRequest& WithReservedDBInstancesOfferingId(const char* value) { SetReservedDBInstancesOfferingId(value); return *this;}
91 
92 
97  inline const Aws::String& GetReservedDBInstanceId() const{ return m_reservedDBInstanceId; }
98 
103  inline bool ReservedDBInstanceIdHasBeenSet() const { return m_reservedDBInstanceIdHasBeenSet; }
104 
109  inline void SetReservedDBInstanceId(const Aws::String& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = value; }
110 
115  inline void SetReservedDBInstanceId(Aws::String&& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = std::move(value); }
116 
121  inline void SetReservedDBInstanceId(const char* value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId.assign(value); }
122 
127  inline PurchaseReservedDBInstancesOfferingRequest& WithReservedDBInstanceId(const Aws::String& value) { SetReservedDBInstanceId(value); return *this;}
128 
133  inline PurchaseReservedDBInstancesOfferingRequest& WithReservedDBInstanceId(Aws::String&& value) { SetReservedDBInstanceId(std::move(value)); return *this;}
134 
139  inline PurchaseReservedDBInstancesOfferingRequest& WithReservedDBInstanceId(const char* value) { SetReservedDBInstanceId(value); return *this;}
140 
141 
145  inline int GetDBInstanceCount() const{ return m_dBInstanceCount; }
146 
150  inline bool DBInstanceCountHasBeenSet() const { return m_dBInstanceCountHasBeenSet; }
151 
155  inline void SetDBInstanceCount(int value) { m_dBInstanceCountHasBeenSet = true; m_dBInstanceCount = value; }
156 
160  inline PurchaseReservedDBInstancesOfferingRequest& WithDBInstanceCount(int value) { SetDBInstanceCount(value); return *this;}
161 
162 
163 
164  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
165 
166 
167  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 
169 
170  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
171 
172 
173  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 
175 
176  inline PurchaseReservedDBInstancesOfferingRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
177 
178 
179  inline PurchaseReservedDBInstancesOfferingRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
180 
181 
182  inline PurchaseReservedDBInstancesOfferingRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
183 
184 
185  inline PurchaseReservedDBInstancesOfferingRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
186 
187  private:
188 
189  Aws::String m_reservedDBInstancesOfferingId;
190  bool m_reservedDBInstancesOfferingIdHasBeenSet;
191 
192  Aws::String m_reservedDBInstanceId;
193  bool m_reservedDBInstanceIdHasBeenSet;
194 
195  int m_dBInstanceCount;
196  bool m_dBInstanceCountHasBeenSet;
197 
198  Aws::Vector<Tag> m_tags;
199  bool m_tagsHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace RDS
204 } // namespace Aws
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::GetReservedDBInstancesOfferingId
const Aws::String & GetReservedDBInstancesOfferingId() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:48
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::PurchaseReservedDBInstancesOfferingRequest
PurchaseReservedDBInstancesOfferingRequest()
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetDBInstanceCount
void SetDBInstanceCount(int value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:155
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetReservedDBInstancesOfferingId
void SetReservedDBInstancesOfferingId(Aws::String &&value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:66
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetReservedDBInstancesOfferingId
void SetReservedDBInstancesOfferingId(const Aws::String &value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:60
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithTags
PurchaseReservedDBInstancesOfferingRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:176
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithDBInstanceCount
PurchaseReservedDBInstancesOfferingRequest & WithDBInstanceCount(int value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:160
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::GetReservedDBInstanceId
const Aws::String & GetReservedDBInstanceId() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:97
AWSVector.h
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetReservedDBInstanceId
void SetReservedDBInstanceId(Aws::String &&value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:115
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithReservedDBInstancesOfferingId
PurchaseReservedDBInstancesOfferingRequest & WithReservedDBInstancesOfferingId(const Aws::String &value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:78
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithReservedDBInstancesOfferingId
PurchaseReservedDBInstancesOfferingRequest & WithReservedDBInstancesOfferingId(Aws::String &&value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:84
RDS_EXPORTS.h
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithReservedDBInstanceId
PurchaseReservedDBInstancesOfferingRequest & WithReservedDBInstanceId(const Aws::String &value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:127
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::ReservedDBInstancesOfferingIdHasBeenSet
bool ReservedDBInstancesOfferingIdHasBeenSet() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:54
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:164
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::GetDBInstanceCount
int GetDBInstanceCount() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:145
AWSString.h
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PurchaseReservedDBInstancesOfferingRequest.h:35
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithReservedDBInstancesOfferingId
PurchaseReservedDBInstancesOfferingRequest & WithReservedDBInstancesOfferingId(const char *value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:90
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetReservedDBInstanceId
void SetReservedDBInstanceId(const char *value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:121
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::DBInstanceCountHasBeenSet
bool DBInstanceCountHasBeenSet() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:150
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithReservedDBInstanceId
PurchaseReservedDBInstancesOfferingRequest & WithReservedDBInstanceId(const char *value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:139
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:167
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetReservedDBInstancesOfferingId
void SetReservedDBInstancesOfferingId(const char *value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:170
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest
Definition: PurchaseReservedDBInstancesOfferingRequest.h:27
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:173
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::SetReservedDBInstanceId
void SetReservedDBInstanceId(const Aws::String &value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:109
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::AddTags
PurchaseReservedDBInstancesOfferingRequest & AddTags(const Tag &value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:182
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithTags
PurchaseReservedDBInstancesOfferingRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:179
RDSRequest.h
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::AddTags
PurchaseReservedDBInstancesOfferingRequest & AddTags(Tag &&value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:185
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::ReservedDBInstanceIdHasBeenSet
bool ReservedDBInstanceIdHasBeenSet() const
Definition: PurchaseReservedDBInstancesOfferingRequest.h:103
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::PurchaseReservedDBInstancesOfferingRequest::WithReservedDBInstanceId
PurchaseReservedDBInstancesOfferingRequest & WithReservedDBInstanceId(Aws::String &&value)
Definition: PurchaseReservedDBInstancesOfferingRequest.h:133