AWS SDK for C++  0.12.9
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 
77  inline const Aws::String& GetDocument() const{ return m_document; }
78 
84  inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
85 
91  inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = value; }
92 
98  inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
99 
105  inline CreateTrafficPolicyVersionRequest& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
106 
112  inline CreateTrafficPolicyVersionRequest& WithDocument(Aws::String&& value) { SetDocument(value); return *this;}
113 
119  inline CreateTrafficPolicyVersionRequest& WithDocument(const char* value) { SetDocument(value); return *this;}
120 
125  inline const Aws::String& GetComment() const{ return m_comment; }
126 
131  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
132 
137  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
138 
143  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
144 
149  inline CreateTrafficPolicyVersionRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
150 
155  inline CreateTrafficPolicyVersionRequest& WithComment(Aws::String&& value) { SetComment(value); return *this;}
156 
161  inline CreateTrafficPolicyVersionRequest& WithComment(const char* value) { SetComment(value); return *this;}
162 
163  private:
164  Aws::String m_id;
165  bool m_idHasBeenSet;
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
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)