AWS SDK for C++  0.14.3
AWS SDK for C++
StatusReport.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Route53
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  StatusReport();
42  StatusReport(const Aws::Utils::Xml::XmlNode& xmlNode);
43  StatusReport& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
50  inline const Aws::String& GetStatus() const{ return m_status; }
51 
55  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
56 
60  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
61 
65  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
66 
70  inline StatusReport& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
71 
75  inline StatusReport& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
76 
80  inline StatusReport& WithStatus(const char* value) { SetStatus(value); return *this;}
81 
88  inline const Aws::Utils::DateTime& GetCheckedTime() const{ return m_checkedTime; }
89 
96  inline void SetCheckedTime(const Aws::Utils::DateTime& value) { m_checkedTimeHasBeenSet = true; m_checkedTime = value; }
97 
104  inline void SetCheckedTime(Aws::Utils::DateTime&& value) { m_checkedTimeHasBeenSet = true; m_checkedTime = value; }
105 
112  inline StatusReport& WithCheckedTime(const Aws::Utils::DateTime& value) { SetCheckedTime(value); return *this;}
113 
120  inline StatusReport& WithCheckedTime(Aws::Utils::DateTime&& value) { SetCheckedTime(value); return *this;}
121 
122  private:
123  Aws::String m_status;
124  bool m_statusHasBeenSet;
125  Aws::Utils::DateTime m_checkedTime;
126  bool m_checkedTimeHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace Route53
131 } // namespace Aws
void SetCheckedTime(Aws::Utils::DateTime &&value)
Definition: StatusReport.h:104
StatusReport & WithStatus(const Aws::String &value)
Definition: StatusReport.h:70
StatusReport & WithCheckedTime(Aws::Utils::DateTime &&value)
Definition: StatusReport.h:120
void SetStatus(Aws::String &&value)
Definition: StatusReport.h:60
const Aws::Utils::DateTime & GetCheckedTime() const
Definition: StatusReport.h:88
void SetStatus(const Aws::String &value)
Definition: StatusReport.h:55
StatusReport & WithStatus(Aws::String &&value)
Definition: StatusReport.h:75
StatusReport & WithStatus(const char *value)
Definition: StatusReport.h:80
const Aws::String & GetStatus() const
Definition: StatusReport.h:50
#define AWS_ROUTE53_API
void SetStatus(const char *value)
Definition: StatusReport.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StatusReport & WithCheckedTime(const Aws::Utils::DateTime &value)
Definition: StatusReport.h:112
void SetCheckedTime(const Aws::Utils::DateTime &value)
Definition: StatusReport.h:96
JSON (JavaScript Object Notation).