AWS SDK for C++  1.9.108
AWS SDK for C++
ApplyPendingMaintenanceActionRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RDS
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ApplyPendingMaintenanceAction"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; }
49 
56  inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
57 
64  inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
65 
72  inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
73 
80  inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); }
81 
88  inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;}
89 
96  inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;}
97 
104  inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;}
105 
106 
112  inline const Aws::String& GetApplyAction() const{ return m_applyAction; }
113 
119  inline bool ApplyActionHasBeenSet() const { return m_applyActionHasBeenSet; }
120 
126  inline void SetApplyAction(const Aws::String& value) { m_applyActionHasBeenSet = true; m_applyAction = value; }
127 
133  inline void SetApplyAction(Aws::String&& value) { m_applyActionHasBeenSet = true; m_applyAction = std::move(value); }
134 
140  inline void SetApplyAction(const char* value) { m_applyActionHasBeenSet = true; m_applyAction.assign(value); }
141 
147  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const Aws::String& value) { SetApplyAction(value); return *this;}
148 
154  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(Aws::String&& value) { SetApplyAction(std::move(value)); return *this;}
155 
161  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const char* value) { SetApplyAction(value); return *this;}
162 
163 
173  inline const Aws::String& GetOptInType() const{ return m_optInType; }
174 
184  inline bool OptInTypeHasBeenSet() const { return m_optInTypeHasBeenSet; }
185 
195  inline void SetOptInType(const Aws::String& value) { m_optInTypeHasBeenSet = true; m_optInType = value; }
196 
206  inline void SetOptInType(Aws::String&& value) { m_optInTypeHasBeenSet = true; m_optInType = std::move(value); }
207 
217  inline void SetOptInType(const char* value) { m_optInTypeHasBeenSet = true; m_optInType.assign(value); }
218 
228  inline ApplyPendingMaintenanceActionRequest& WithOptInType(const Aws::String& value) { SetOptInType(value); return *this;}
229 
239  inline ApplyPendingMaintenanceActionRequest& WithOptInType(Aws::String&& value) { SetOptInType(std::move(value)); return *this;}
240 
250  inline ApplyPendingMaintenanceActionRequest& WithOptInType(const char* value) { SetOptInType(value); return *this;}
251 
252  private:
253 
254  Aws::String m_resourceIdentifier;
255  bool m_resourceIdentifierHasBeenSet;
256 
257  Aws::String m_applyAction;
258  bool m_applyActionHasBeenSet;
259 
260  Aws::String m_optInType;
261  bool m_optInTypeHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace RDS
266 } // namespace Aws
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::GetOptInType
const Aws::String & GetOptInType() const
Definition: ApplyPendingMaintenanceActionRequest.h:173
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithOptInType
ApplyPendingMaintenanceActionRequest & WithOptInType(const char *value)
Definition: ApplyPendingMaintenanceActionRequest.h:250
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::ApplyPendingMaintenanceActionRequest
ApplyPendingMaintenanceActionRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetResourceIdentifier
void SetResourceIdentifier(const char *value)
Definition: ApplyPendingMaintenanceActionRequest.h:80
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetApplyAction
void SetApplyAction(Aws::String &&value)
Definition: ApplyPendingMaintenanceActionRequest.h:133
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::ApplyActionHasBeenSet
bool ApplyActionHasBeenSet() const
Definition: ApplyPendingMaintenanceActionRequest.h:119
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::OptInTypeHasBeenSet
bool OptInTypeHasBeenSet() const
Definition: ApplyPendingMaintenanceActionRequest.h:184
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithOptInType
ApplyPendingMaintenanceActionRequest & WithOptInType(const Aws::String &value)
Definition: ApplyPendingMaintenanceActionRequest.h:228
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithResourceIdentifier
ApplyPendingMaintenanceActionRequest & WithResourceIdentifier(Aws::String &&value)
Definition: ApplyPendingMaintenanceActionRequest.h:96
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithResourceIdentifier
ApplyPendingMaintenanceActionRequest & WithResourceIdentifier(const char *value)
Definition: ApplyPendingMaintenanceActionRequest.h:104
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithApplyAction
ApplyPendingMaintenanceActionRequest & WithApplyAction(const Aws::String &value)
Definition: ApplyPendingMaintenanceActionRequest.h:147
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetOptInType
void SetOptInType(const Aws::String &value)
Definition: ApplyPendingMaintenanceActionRequest.h:195
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithResourceIdentifier
ApplyPendingMaintenanceActionRequest & WithResourceIdentifier(const Aws::String &value)
Definition: ApplyPendingMaintenanceActionRequest.h:88
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetApplyAction
void SetApplyAction(const Aws::String &value)
Definition: ApplyPendingMaintenanceActionRequest.h:126
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithOptInType
ApplyPendingMaintenanceActionRequest & WithOptInType(Aws::String &&value)
Definition: ApplyPendingMaintenanceActionRequest.h:239
RDS_EXPORTS.h
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest
Definition: ApplyPendingMaintenanceActionRequest.h:25
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetApplyAction
void SetApplyAction(const char *value)
Definition: ApplyPendingMaintenanceActionRequest.h:140
AWSString.h
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::GetApplyAction
const Aws::String & GetApplyAction() const
Definition: ApplyPendingMaintenanceActionRequest.h:112
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ApplyPendingMaintenanceActionRequest.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithApplyAction
ApplyPendingMaintenanceActionRequest & WithApplyAction(const char *value)
Definition: ApplyPendingMaintenanceActionRequest.h:161
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::GetResourceIdentifier
const Aws::String & GetResourceIdentifier() const
Definition: ApplyPendingMaintenanceActionRequest.h:48
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::WithApplyAction
ApplyPendingMaintenanceActionRequest & WithApplyAction(Aws::String &&value)
Definition: ApplyPendingMaintenanceActionRequest.h:154
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::ResourceIdentifierHasBeenSet
bool ResourceIdentifierHasBeenSet() const
Definition: ApplyPendingMaintenanceActionRequest.h:56
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetResourceIdentifier
void SetResourceIdentifier(Aws::String &&value)
Definition: ApplyPendingMaintenanceActionRequest.h:72
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetOptInType
void SetOptInType(Aws::String &&value)
Definition: ApplyPendingMaintenanceActionRequest.h:206
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetResourceIdentifier
void SetResourceIdentifier(const Aws::String &value)
Definition: ApplyPendingMaintenanceActionRequest.h:64
Aws::RDS::Model::ApplyPendingMaintenanceActionRequest::SetOptInType
void SetOptInType(const char *value)
Definition: ApplyPendingMaintenanceActionRequest.h:217