AWS SDK for C++  0.14.3
AWS SDK for C++
Change.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  Change();
42  Change(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Change& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
62  inline const ChangeAction& GetAction() const{ return m_action; }
63 
79  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
80 
96  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
97 
113  inline Change& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
114 
130  inline Change& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
131 
135  inline const ResourceRecordSet& GetResourceRecordSet() const{ return m_resourceRecordSet; }
136 
140  inline void SetResourceRecordSet(const ResourceRecordSet& value) { m_resourceRecordSetHasBeenSet = true; m_resourceRecordSet = value; }
141 
145  inline void SetResourceRecordSet(ResourceRecordSet&& value) { m_resourceRecordSetHasBeenSet = true; m_resourceRecordSet = value; }
146 
150  inline Change& WithResourceRecordSet(const ResourceRecordSet& value) { SetResourceRecordSet(value); return *this;}
151 
155  inline Change& WithResourceRecordSet(ResourceRecordSet&& value) { SetResourceRecordSet(value); return *this;}
156 
157  private:
158  ChangeAction m_action;
159  bool m_actionHasBeenSet;
160  ResourceRecordSet m_resourceRecordSet;
161  bool m_resourceRecordSetHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace Route53
166 } // namespace Aws
const ResourceRecordSet & GetResourceRecordSet() const
Definition: Change.h:135
Change & WithAction(const ChangeAction &value)
Definition: Change.h:113
void SetAction(ChangeAction &&value)
Definition: Change.h:96
Change & WithResourceRecordSet(const ResourceRecordSet &value)
Definition: Change.h:150
void SetResourceRecordSet(const ResourceRecordSet &value)
Definition: Change.h:140
Change & WithAction(ChangeAction &&value)
Definition: Change.h:130
Change & WithResourceRecordSet(ResourceRecordSet &&value)
Definition: Change.h:155
#define AWS_ROUTE53_API
void SetResourceRecordSet(ResourceRecordSet &&value)
Definition: Change.h:145
const ChangeAction & GetAction() const
Definition: Change.h:62
JSON (JavaScript Object Notation).
void SetAction(const ChangeAction &value)
Definition: Change.h:79