AWS SDK for C++  0.14.3
AWS SDK for C++
CreateTrafficPolicyVersionRequest.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& GetId() const{ return m_id; }
41 
45  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
46 
50  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
51 
55  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
56 
60  inline CreateTrafficPolicyVersionRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
61 
65  inline CreateTrafficPolicyVersionRequest& WithId(Aws::String&& value) { SetId(value); return *this;}
66 
70  inline CreateTrafficPolicyVersionRequest& WithId(const char* value) { SetId(value); return *this;}
71 
80  inline const Aws::String& GetDocument() const{ return m_document; }
81 
90  inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
91 
100  inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = value; }
101 
110  inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
111 
120  inline CreateTrafficPolicyVersionRequest& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
121 
130  inline CreateTrafficPolicyVersionRequest& WithDocument(Aws::String&& value) { SetDocument(value); return *this;}
131 
140  inline CreateTrafficPolicyVersionRequest& WithDocument(const char* value) { SetDocument(value); return *this;}
141 
146  inline const Aws::String& GetComment() const{ return m_comment; }
147 
152  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
153 
158  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
159 
164  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
165 
170  inline CreateTrafficPolicyVersionRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
171 
176  inline CreateTrafficPolicyVersionRequest& WithComment(Aws::String&& value) { SetComment(value); return *this;}
177 
182  inline CreateTrafficPolicyVersionRequest& WithComment(const char* value) { SetComment(value); return *this;}
183 
184  private:
185  Aws::String m_id;
186  bool m_idHasBeenSet;
187  Aws::String m_document;
188  bool m_documentHasBeenSet;
189  Aws::String m_comment;
190  bool m_commentHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace Route53
195 } // namespace Aws
CreateTrafficPolicyVersionRequest & WithId(const char *value)
CreateTrafficPolicyVersionRequest & WithComment(Aws::String &&value)
CreateTrafficPolicyVersionRequest & WithDocument(const Aws::String &value)
CreateTrafficPolicyVersionRequest & WithDocument(Aws::String &&value)
CreateTrafficPolicyVersionRequest & WithDocument(const char *value)
CreateTrafficPolicyVersionRequest & WithComment(const char *value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTrafficPolicyVersionRequest & WithComment(const Aws::String &value)
CreateTrafficPolicyVersionRequest & WithId(const Aws::String &value)
JSON (JavaScript Object Notation).
CreateTrafficPolicyVersionRequest & WithId(Aws::String &&value)