AWS SDK for C++  0.14.3
AWS SDK for C++
CreateTrafficPolicyRequest.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 Route53
23 {
24 namespace Model
25 {
26 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 
50  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 
60  inline CreateTrafficPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
61 
65  inline CreateTrafficPolicyRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
66 
70  inline CreateTrafficPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
71 
78  inline const Aws::String& GetDocument() const{ return m_document; }
79 
86  inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
87 
94  inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = value; }
95 
102  inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
103 
110  inline CreateTrafficPolicyRequest& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
111 
118  inline CreateTrafficPolicyRequest& WithDocument(Aws::String&& value) { SetDocument(value); return *this;}
119 
126  inline CreateTrafficPolicyRequest& WithDocument(const char* value) { SetDocument(value); return *this;}
127 
131  inline const Aws::String& GetComment() const{ return m_comment; }
132 
136  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
137 
141  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
142 
146  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
147 
151  inline CreateTrafficPolicyRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
152 
156  inline CreateTrafficPolicyRequest& WithComment(Aws::String&& value) { SetComment(value); return *this;}
157 
161  inline CreateTrafficPolicyRequest& WithComment(const char* value) { SetComment(value); return *this;}
162 
163  private:
164  Aws::String m_name;
165  bool m_nameHasBeenSet;
166  Aws::String m_document;
167  bool m_documentHasBeenSet;
168  Aws::String m_comment;
169  bool m_commentHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace Route53
174 } // namespace Aws
CreateTrafficPolicyRequest & WithName(const Aws::String &value)
CreateTrafficPolicyRequest & WithDocument(Aws::String &&value)
CreateTrafficPolicyRequest & WithComment(const char *value)
CreateTrafficPolicyRequest & WithComment(Aws::String &&value)
CreateTrafficPolicyRequest & WithDocument(const char *value)
CreateTrafficPolicyRequest & WithComment(const Aws::String &value)
CreateTrafficPolicyRequest & WithDocument(const Aws::String &value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTrafficPolicyRequest & WithName(Aws::String &&value)
CreateTrafficPolicyRequest & WithName(const char *value)
JSON (JavaScript Object Notation).