AWS SDK for C++  0.14.3
AWS SDK for C++
ApplyPendingMaintenanceActionRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
17 #include <aws/rds/RDSRequest.h>
19 
20 namespace Aws
21 {
22 namespace RDS
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
42  inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; }
43 
50  inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
51 
58  inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
59 
66  inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); }
67 
74  inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;}
75 
82  inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(value); return *this;}
83 
90  inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;}
91 
96  inline const Aws::String& GetApplyAction() const{ return m_applyAction; }
97 
102  inline void SetApplyAction(const Aws::String& value) { m_applyActionHasBeenSet = true; m_applyAction = value; }
103 
108  inline void SetApplyAction(Aws::String&& value) { m_applyActionHasBeenSet = true; m_applyAction = value; }
109 
114  inline void SetApplyAction(const char* value) { m_applyActionHasBeenSet = true; m_applyAction.assign(value); }
115 
120  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const Aws::String& value) { SetApplyAction(value); return *this;}
121 
126  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(Aws::String&& value) { SetApplyAction(value); return *this;}
127 
132  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const char* value) { SetApplyAction(value); return *this;}
133 
143  inline const Aws::String& GetOptInType() const{ return m_optInType; }
144 
154  inline void SetOptInType(const Aws::String& value) { m_optInTypeHasBeenSet = true; m_optInType = value; }
155 
165  inline void SetOptInType(Aws::String&& value) { m_optInTypeHasBeenSet = true; m_optInType = value; }
166 
176  inline void SetOptInType(const char* value) { m_optInTypeHasBeenSet = true; m_optInType.assign(value); }
177 
187  inline ApplyPendingMaintenanceActionRequest& WithOptInType(const Aws::String& value) { SetOptInType(value); return *this;}
188 
198  inline ApplyPendingMaintenanceActionRequest& WithOptInType(Aws::String&& value) { SetOptInType(value); return *this;}
199 
209  inline ApplyPendingMaintenanceActionRequest& WithOptInType(const char* value) { SetOptInType(value); return *this;}
210 
211  private:
212  Aws::String m_resourceIdentifier;
213  bool m_resourceIdentifierHasBeenSet;
214  Aws::String m_applyAction;
215  bool m_applyActionHasBeenSet;
216  Aws::String m_optInType;
217  bool m_optInTypeHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace RDS
222 } // namespace Aws
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
ApplyPendingMaintenanceActionRequest & WithResourceIdentifier(Aws::String &&value)
ApplyPendingMaintenanceActionRequest & WithResourceIdentifier(const char *value)
ApplyPendingMaintenanceActionRequest & WithResourceIdentifier(const Aws::String &value)
ApplyPendingMaintenanceActionRequest & WithApplyAction(Aws::String &&value)
ApplyPendingMaintenanceActionRequest & WithOptInType(Aws::String &&value)
ApplyPendingMaintenanceActionRequest & WithApplyAction(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ApplyPendingMaintenanceActionRequest & WithOptInType(const char *value)
ApplyPendingMaintenanceActionRequest & WithApplyAction(const char *value)
ApplyPendingMaintenanceActionRequest & WithOptInType(const Aws::String &value)
JSON (JavaScript Object Notation).