AWS SDK for C++  1.9.108
AWS SDK for C++
AcceptReservedNodeExchangeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AcceptReservedNodeExchange"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetReservedNodeId() const{ return m_reservedNodeId; }
44 
49  inline bool ReservedNodeIdHasBeenSet() const { return m_reservedNodeIdHasBeenSet; }
50 
55  inline void SetReservedNodeId(const Aws::String& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = value; }
56 
61  inline void SetReservedNodeId(Aws::String&& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = std::move(value); }
62 
67  inline void SetReservedNodeId(const char* value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId.assign(value); }
68 
73  inline AcceptReservedNodeExchangeRequest& WithReservedNodeId(const Aws::String& value) { SetReservedNodeId(value); return *this;}
74 
79  inline AcceptReservedNodeExchangeRequest& WithReservedNodeId(Aws::String&& value) { SetReservedNodeId(std::move(value)); return *this;}
80 
85  inline AcceptReservedNodeExchangeRequest& WithReservedNodeId(const char* value) { SetReservedNodeId(value); return *this;}
86 
87 
93  inline const Aws::String& GetTargetReservedNodeOfferingId() const{ return m_targetReservedNodeOfferingId; }
94 
100  inline bool TargetReservedNodeOfferingIdHasBeenSet() const { return m_targetReservedNodeOfferingIdHasBeenSet; }
101 
107  inline void SetTargetReservedNodeOfferingId(const Aws::String& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = value; }
108 
114  inline void SetTargetReservedNodeOfferingId(Aws::String&& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = std::move(value); }
115 
121  inline void SetTargetReservedNodeOfferingId(const char* value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId.assign(value); }
122 
128  inline AcceptReservedNodeExchangeRequest& WithTargetReservedNodeOfferingId(const Aws::String& value) { SetTargetReservedNodeOfferingId(value); return *this;}
129 
135  inline AcceptReservedNodeExchangeRequest& WithTargetReservedNodeOfferingId(Aws::String&& value) { SetTargetReservedNodeOfferingId(std::move(value)); return *this;}
136 
142  inline AcceptReservedNodeExchangeRequest& WithTargetReservedNodeOfferingId(const char* value) { SetTargetReservedNodeOfferingId(value); return *this;}
143 
144  private:
145 
146  Aws::String m_reservedNodeId;
147  bool m_reservedNodeIdHasBeenSet;
148 
149  Aws::String m_targetReservedNodeOfferingId;
150  bool m_targetReservedNodeOfferingIdHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace Redshift
155 } // namespace Aws
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::WithTargetReservedNodeOfferingId
AcceptReservedNodeExchangeRequest & WithTargetReservedNodeOfferingId(const Aws::String &value)
Definition: AcceptReservedNodeExchangeRequest.h:128
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::TargetReservedNodeOfferingIdHasBeenSet
bool TargetReservedNodeOfferingIdHasBeenSet() const
Definition: AcceptReservedNodeExchangeRequest.h:100
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::SetReservedNodeId
void SetReservedNodeId(const char *value)
Definition: AcceptReservedNodeExchangeRequest.h:67
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::GetTargetReservedNodeOfferingId
const Aws::String & GetTargetReservedNodeOfferingId() const
Definition: AcceptReservedNodeExchangeRequest.h:93
RedshiftRequest.h
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::SetReservedNodeId
void SetReservedNodeId(const Aws::String &value)
Definition: AcceptReservedNodeExchangeRequest.h:55
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::SetTargetReservedNodeOfferingId
void SetTargetReservedNodeOfferingId(Aws::String &&value)
Definition: AcceptReservedNodeExchangeRequest.h:114
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::WithReservedNodeId
AcceptReservedNodeExchangeRequest & WithReservedNodeId(Aws::String &&value)
Definition: AcceptReservedNodeExchangeRequest.h:79
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::SetTargetReservedNodeOfferingId
void SetTargetReservedNodeOfferingId(const Aws::String &value)
Definition: AcceptReservedNodeExchangeRequest.h:107
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest
Definition: AcceptReservedNodeExchangeRequest.h:22
AWSString.h
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::ReservedNodeIdHasBeenSet
bool ReservedNodeIdHasBeenSet() const
Definition: AcceptReservedNodeExchangeRequest.h:49
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::SetTargetReservedNodeOfferingId
void SetTargetReservedNodeOfferingId(const char *value)
Definition: AcceptReservedNodeExchangeRequest.h:121
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::WithTargetReservedNodeOfferingId
AcceptReservedNodeExchangeRequest & WithTargetReservedNodeOfferingId(Aws::String &&value)
Definition: AcceptReservedNodeExchangeRequest.h:135
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AcceptReservedNodeExchangeRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::WithTargetReservedNodeOfferingId
AcceptReservedNodeExchangeRequest & WithTargetReservedNodeOfferingId(const char *value)
Definition: AcceptReservedNodeExchangeRequest.h:142
Redshift_EXPORTS.h
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::WithReservedNodeId
AcceptReservedNodeExchangeRequest & WithReservedNodeId(const char *value)
Definition: AcceptReservedNodeExchangeRequest.h:85
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::GetReservedNodeId
const Aws::String & GetReservedNodeId() const
Definition: AcceptReservedNodeExchangeRequest.h:43
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::SetReservedNodeId
void SetReservedNodeId(Aws::String &&value)
Definition: AcceptReservedNodeExchangeRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::AcceptReservedNodeExchangeRequest
AcceptReservedNodeExchangeRequest()
Aws::Redshift::Model::AcceptReservedNodeExchangeRequest::WithReservedNodeId
AcceptReservedNodeExchangeRequest & WithReservedNodeId(const Aws::String &value)
Definition: AcceptReservedNodeExchangeRequest.h:73