AWS SDK for C++  0.14.3
AWS SDK for C++
ChangeInfo.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace Route53
31 {
32 namespace Model
33 {
34 
41  {
42  public:
43  ChangeInfo();
44  ChangeInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
45  ChangeInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48 
53  inline const Aws::String& GetId() const{ return m_id; }
54 
59  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 
65  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
66 
71  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
72 
77  inline ChangeInfo& WithId(const Aws::String& value) { SetId(value); return *this;}
78 
83  inline ChangeInfo& WithId(Aws::String&& value) { SetId(value); return *this;}
84 
89  inline ChangeInfo& WithId(const char* value) { SetId(value); return *this;}
90 
96  inline const ChangeStatus& GetStatus() const{ return m_status; }
97 
103  inline void SetStatus(const ChangeStatus& value) { m_statusHasBeenSet = true; m_status = value; }
104 
110  inline void SetStatus(ChangeStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
111 
117  inline ChangeInfo& WithStatus(const ChangeStatus& value) { SetStatus(value); return *this;}
118 
124  inline ChangeInfo& WithStatus(ChangeStatus&& value) { SetStatus(value); return *this;}
125 
132  inline const Aws::Utils::DateTime& GetSubmittedAt() const{ return m_submittedAt; }
133 
140  inline void SetSubmittedAt(const Aws::Utils::DateTime& value) { m_submittedAtHasBeenSet = true; m_submittedAt = value; }
141 
148  inline void SetSubmittedAt(Aws::Utils::DateTime&& value) { m_submittedAtHasBeenSet = true; m_submittedAt = value; }
149 
156  inline ChangeInfo& WithSubmittedAt(const Aws::Utils::DateTime& value) { SetSubmittedAt(value); return *this;}
157 
164  inline ChangeInfo& WithSubmittedAt(Aws::Utils::DateTime&& value) { SetSubmittedAt(value); return *this;}
165 
171  inline const Aws::String& GetComment() const{ return m_comment; }
172 
178  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
179 
185  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
186 
192  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
193 
199  inline ChangeInfo& WithComment(const Aws::String& value) { SetComment(value); return *this;}
200 
206  inline ChangeInfo& WithComment(Aws::String&& value) { SetComment(value); return *this;}
207 
213  inline ChangeInfo& WithComment(const char* value) { SetComment(value); return *this;}
214 
215  private:
216  Aws::String m_id;
217  bool m_idHasBeenSet;
218  ChangeStatus m_status;
219  bool m_statusHasBeenSet;
220  Aws::Utils::DateTime m_submittedAt;
221  bool m_submittedAtHasBeenSet;
222  Aws::String m_comment;
223  bool m_commentHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace Route53
228 } // namespace Aws
void SetId(const Aws::String &value)
Definition: ChangeInfo.h:59
const ChangeStatus & GetStatus() const
Definition: ChangeInfo.h:96
ChangeInfo & WithId(const Aws::String &value)
Definition: ChangeInfo.h:77
ChangeInfo & WithStatus(const ChangeStatus &value)
Definition: ChangeInfo.h:117
ChangeInfo & WithSubmittedAt(Aws::Utils::DateTime &&value)
Definition: ChangeInfo.h:164
ChangeInfo & WithId(const char *value)
Definition: ChangeInfo.h:89
void SetComment(Aws::String &&value)
Definition: ChangeInfo.h:185
void SetId(const char *value)
Definition: ChangeInfo.h:71
void SetId(Aws::String &&value)
Definition: ChangeInfo.h:65
const Aws::Utils::DateTime & GetSubmittedAt() const
Definition: ChangeInfo.h:132
void SetStatus(ChangeStatus &&value)
Definition: ChangeInfo.h:110
ChangeInfo & WithSubmittedAt(const Aws::Utils::DateTime &value)
Definition: ChangeInfo.h:156
void SetStatus(const ChangeStatus &value)
Definition: ChangeInfo.h:103
void SetComment(const Aws::String &value)
Definition: ChangeInfo.h:178
ChangeInfo & WithComment(Aws::String &&value)
Definition: ChangeInfo.h:206
void SetSubmittedAt(Aws::Utils::DateTime &&value)
Definition: ChangeInfo.h:148
#define AWS_ROUTE53_API
ChangeInfo & WithId(Aws::String &&value)
Definition: ChangeInfo.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ChangeInfo & WithStatus(ChangeStatus &&value)
Definition: ChangeInfo.h:124
void SetSubmittedAt(const Aws::Utils::DateTime &value)
Definition: ChangeInfo.h:140
void SetComment(const char *value)
Definition: ChangeInfo.h:192
ChangeInfo & WithComment(const char *value)
Definition: ChangeInfo.h:213
ChangeInfo & WithComment(const Aws::String &value)
Definition: ChangeInfo.h:199
const Aws::String & GetComment() const
Definition: ChangeInfo.h:171
JSON (JavaScript Object Notation).
const Aws::String & GetId() const
Definition: ChangeInfo.h:53