AWS SDK for C++  0.12.9
AWS SDK for C++
TrafficPolicy.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 
35  {
36  public:
37  TrafficPolicy();
39  TrafficPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
44  inline const Aws::String& GetId() const{ return m_id; }
45 
46 
47  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 
49 
50  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
51 
52 
53  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 
55 
56  inline TrafficPolicy& WithId(const Aws::String& value) { SetId(value); return *this;}
57 
58 
59  inline TrafficPolicy& WithId(Aws::String&& value) { SetId(value); return *this;}
60 
61 
62  inline TrafficPolicy& WithId(const char* value) { SetId(value); return *this;}
63 
64 
65  inline long GetVersion() const{ return m_version; }
66 
67 
68  inline void SetVersion(long value) { m_versionHasBeenSet = true; m_version = value; }
69 
70 
71  inline TrafficPolicy& WithVersion(long value) { SetVersion(value); return *this;}
72 
73 
74  inline const Aws::String& GetName() const{ return m_name; }
75 
76 
77  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 
79 
80  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
81 
82 
83  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 
85 
86  inline TrafficPolicy& WithName(const Aws::String& value) { SetName(value); return *this;}
87 
88 
89  inline TrafficPolicy& WithName(Aws::String&& value) { SetName(value); return *this;}
90 
91 
92  inline TrafficPolicy& WithName(const char* value) { SetName(value); return *this;}
93 
94 
95  inline const RRType& GetType() const{ return m_type; }
96 
97 
98  inline void SetType(const RRType& value) { m_typeHasBeenSet = true; m_type = value; }
99 
100 
101  inline void SetType(RRType&& value) { m_typeHasBeenSet = true; m_type = value; }
102 
103 
104  inline TrafficPolicy& WithType(const RRType& value) { SetType(value); return *this;}
105 
106 
107  inline TrafficPolicy& WithType(RRType&& value) { SetType(value); return *this;}
108 
109 
110  inline const Aws::String& GetDocument() const{ return m_document; }
111 
112 
113  inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
114 
115 
116  inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = value; }
117 
118 
119  inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
120 
121 
122  inline TrafficPolicy& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
123 
124 
125  inline TrafficPolicy& WithDocument(Aws::String&& value) { SetDocument(value); return *this;}
126 
127 
128  inline TrafficPolicy& WithDocument(const char* value) { SetDocument(value); return *this;}
129 
130 
131  inline const Aws::String& GetComment() const{ return m_comment; }
132 
133 
134  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
135 
136 
137  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
138 
139 
140  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
141 
142 
143  inline TrafficPolicy& WithComment(const Aws::String& value) { SetComment(value); return *this;}
144 
145 
146  inline TrafficPolicy& WithComment(Aws::String&& value) { SetComment(value); return *this;}
147 
148 
149  inline TrafficPolicy& WithComment(const char* value) { SetComment(value); return *this;}
150 
151  private:
152  Aws::String m_id;
153  bool m_idHasBeenSet;
154  long m_version;
155  bool m_versionHasBeenSet;
156  Aws::String m_name;
157  bool m_nameHasBeenSet;
158  RRType m_type;
159  bool m_typeHasBeenSet;
160  Aws::String m_document;
161  bool m_documentHasBeenSet;
162  Aws::String m_comment;
163  bool m_commentHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace Route53
168 } // namespace Aws
void SetId(const Aws::String &value)
Definition: TrafficPolicy.h:47
void SetComment(Aws::String &&value)
TrafficPolicy & WithName(const Aws::String &value)
Definition: TrafficPolicy.h:86
void SetComment(const char *value)
void SetId(Aws::String &&value)
Definition: TrafficPolicy.h:50
void SetDocument(Aws::String &&value)
TrafficPolicy & WithComment(Aws::String &&value)
TrafficPolicy & WithType(const RRType &value)
void SetComment(const Aws::String &value)
const Aws::String & GetId() const
Definition: TrafficPolicy.h:44
TrafficPolicy & WithDocument(const Aws::String &value)
void SetName(Aws::String &&value)
Definition: TrafficPolicy.h:80
const RRType & GetType() const
Definition: TrafficPolicy.h:95
TrafficPolicy & WithId(const Aws::String &value)
Definition: TrafficPolicy.h:56
void SetName(const char *value)
Definition: TrafficPolicy.h:83
void SetDocument(const char *value)
TrafficPolicy & WithVersion(long value)
Definition: TrafficPolicy.h:71
const Aws::String & GetComment() const
void SetId(const char *value)
Definition: TrafficPolicy.h:53
TrafficPolicy & WithDocument(const char *value)
TrafficPolicy & WithId(Aws::String &&value)
Definition: TrafficPolicy.h:59
void SetType(const RRType &value)
Definition: TrafficPolicy.h:98
void SetName(const Aws::String &value)
Definition: TrafficPolicy.h:77
TrafficPolicy & WithId(const char *value)
Definition: TrafficPolicy.h:62
#define AWS_ROUTE53_API
const Aws::String & GetDocument() const
TrafficPolicy & WithComment(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TrafficPolicy & WithType(RRType &&value)
TrafficPolicy & WithComment(const Aws::String &value)
TrafficPolicy & WithDocument(Aws::String &&value)
TrafficPolicy & WithName(const char *value)
Definition: TrafficPolicy.h:92
const Aws::String & GetName() const
Definition: TrafficPolicy.h:74
void SetDocument(const Aws::String &value)
TrafficPolicy & WithName(Aws::String &&value)
Definition: TrafficPolicy.h:89
JSON (JavaScript Object Notation).