AWS SDK for C++  0.12.9
AWS SDK for C++
PendingMaintenanceAction.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace RDS
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  PendingMaintenanceAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
52  inline const Aws::String& GetAction() const{ return m_action; }
53 
58  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
59 
64  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = value; }
65 
70  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
71 
76  inline PendingMaintenanceAction& WithAction(const Aws::String& value) { SetAction(value); return *this;}
77 
82  inline PendingMaintenanceAction& WithAction(Aws::String&& value) { SetAction(value); return *this;}
83 
88  inline PendingMaintenanceAction& WithAction(const char* value) { SetAction(value); return *this;}
89 
96  inline const Aws::Utils::DateTime& GetAutoAppliedAfterDate() const{ return m_autoAppliedAfterDate; }
97 
104  inline void SetAutoAppliedAfterDate(const Aws::Utils::DateTime& value) { m_autoAppliedAfterDateHasBeenSet = true; m_autoAppliedAfterDate = value; }
105 
112  inline void SetAutoAppliedAfterDate(Aws::Utils::DateTime&& value) { m_autoAppliedAfterDateHasBeenSet = true; m_autoAppliedAfterDate = value; }
113 
120  inline PendingMaintenanceAction& WithAutoAppliedAfterDate(const Aws::Utils::DateTime& value) { SetAutoAppliedAfterDate(value); return *this;}
121 
128  inline PendingMaintenanceAction& WithAutoAppliedAfterDate(Aws::Utils::DateTime&& value) { SetAutoAppliedAfterDate(value); return *this;}
129 
136  inline const Aws::Utils::DateTime& GetForcedApplyDate() const{ return m_forcedApplyDate; }
137 
144  inline void SetForcedApplyDate(const Aws::Utils::DateTime& value) { m_forcedApplyDateHasBeenSet = true; m_forcedApplyDate = value; }
145 
152  inline void SetForcedApplyDate(Aws::Utils::DateTime&& value) { m_forcedApplyDateHasBeenSet = true; m_forcedApplyDate = value; }
153 
160  inline PendingMaintenanceAction& WithForcedApplyDate(const Aws::Utils::DateTime& value) { SetForcedApplyDate(value); return *this;}
161 
168  inline PendingMaintenanceAction& WithForcedApplyDate(Aws::Utils::DateTime&& value) { SetForcedApplyDate(value); return *this;}
169 
174  inline const Aws::String& GetOptInStatus() const{ return m_optInStatus; }
175 
180  inline void SetOptInStatus(const Aws::String& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; }
181 
186  inline void SetOptInStatus(Aws::String&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; }
187 
192  inline void SetOptInStatus(const char* value) { m_optInStatusHasBeenSet = true; m_optInStatus.assign(value); }
193 
198  inline PendingMaintenanceAction& WithOptInStatus(const Aws::String& value) { SetOptInStatus(value); return *this;}
199 
204  inline PendingMaintenanceAction& WithOptInStatus(Aws::String&& value) { SetOptInStatus(value); return *this;}
205 
210  inline PendingMaintenanceAction& WithOptInStatus(const char* value) { SetOptInStatus(value); return *this;}
211 
220  inline const Aws::Utils::DateTime& GetCurrentApplyDate() const{ return m_currentApplyDate; }
221 
230  inline void SetCurrentApplyDate(const Aws::Utils::DateTime& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = value; }
231 
240  inline void SetCurrentApplyDate(Aws::Utils::DateTime&& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = value; }
241 
250  inline PendingMaintenanceAction& WithCurrentApplyDate(const Aws::Utils::DateTime& value) { SetCurrentApplyDate(value); return *this;}
251 
260  inline PendingMaintenanceAction& WithCurrentApplyDate(Aws::Utils::DateTime&& value) { SetCurrentApplyDate(value); return *this;}
261 
265  inline const Aws::String& GetDescription() const{ return m_description; }
266 
270  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
271 
275  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
276 
280  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
281 
285  inline PendingMaintenanceAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
286 
290  inline PendingMaintenanceAction& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
291 
295  inline PendingMaintenanceAction& WithDescription(const char* value) { SetDescription(value); return *this;}
296 
297  private:
298  Aws::String m_action;
299  bool m_actionHasBeenSet;
300  Aws::Utils::DateTime m_autoAppliedAfterDate;
301  bool m_autoAppliedAfterDateHasBeenSet;
302  Aws::Utils::DateTime m_forcedApplyDate;
303  bool m_forcedApplyDateHasBeenSet;
304  Aws::String m_optInStatus;
305  bool m_optInStatusHasBeenSet;
306  Aws::Utils::DateTime m_currentApplyDate;
307  bool m_currentApplyDateHasBeenSet;
308  Aws::String m_description;
309  bool m_descriptionHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace RDS
314 } // namespace Aws
void SetAutoAppliedAfterDate(Aws::Utils::DateTime &&value)
void SetForcedApplyDate(Aws::Utils::DateTime &&value)
PendingMaintenanceAction & WithAutoAppliedAfterDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCurrentApplyDate() const
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:34
const Aws::Utils::DateTime & GetAutoAppliedAfterDate() const
void SetCurrentApplyDate(const Aws::Utils::DateTime &value)
PendingMaintenanceAction & WithOptInStatus(Aws::String &&value)
PendingMaintenanceAction & WithAction(Aws::String &&value)
void SetAutoAppliedAfterDate(const Aws::Utils::DateTime &value)
PendingMaintenanceAction & WithCurrentApplyDate(Aws::Utils::DateTime &&value)
PendingMaintenanceAction & WithAction(const Aws::String &value)
PendingMaintenanceAction & WithAction(const char *value)
PendingMaintenanceAction & WithAutoAppliedAfterDate(const Aws::Utils::DateTime &value)
void SetCurrentApplyDate(Aws::Utils::DateTime &&value)
PendingMaintenanceAction & WithOptInStatus(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
PendingMaintenanceAction & WithCurrentApplyDate(const Aws::Utils::DateTime &value)
void SetForcedApplyDate(const Aws::Utils::DateTime &value)
PendingMaintenanceAction & WithDescription(const Aws::String &value)
PendingMaintenanceAction & WithForcedApplyDate(const Aws::Utils::DateTime &value)
PendingMaintenanceAction & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PendingMaintenanceAction & WithDescription(const char *value)
PendingMaintenanceAction & WithOptInStatus(const Aws::String &value)
PendingMaintenanceAction & WithForcedApplyDate(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).
const Aws::Utils::DateTime & GetForcedApplyDate() const