AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateTrafficPolicyCommentRequest.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 
41  inline const Aws::String& GetId() const{ return m_id; }
42 
47  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 
53  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
54 
59  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
60 
65  inline UpdateTrafficPolicyCommentRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
66 
71  inline UpdateTrafficPolicyCommentRequest& WithId(Aws::String&& value) { SetId(value); return *this;}
72 
77  inline UpdateTrafficPolicyCommentRequest& WithId(const char* value) { SetId(value); return *this;}
78 
83  inline int GetVersion() const{ return m_version; }
84 
89  inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
90 
95  inline UpdateTrafficPolicyCommentRequest& WithVersion(int value) { SetVersion(value); return *this;}
96 
100  inline const Aws::String& GetComment() const{ return m_comment; }
101 
105  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
106 
110  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
111 
115  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
116 
120  inline UpdateTrafficPolicyCommentRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
121 
125  inline UpdateTrafficPolicyCommentRequest& WithComment(Aws::String&& value) { SetComment(value); return *this;}
126 
130  inline UpdateTrafficPolicyCommentRequest& WithComment(const char* value) { SetComment(value); return *this;}
131 
132  private:
133  Aws::String m_id;
134  bool m_idHasBeenSet;
135  int m_version;
136  bool m_versionHasBeenSet;
137  Aws::String m_comment;
138  bool m_commentHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace Route53
143 } // namespace Aws
UpdateTrafficPolicyCommentRequest & WithComment(const Aws::String &value)
UpdateTrafficPolicyCommentRequest & WithId(const Aws::String &value)
UpdateTrafficPolicyCommentRequest & WithComment(const char *value)
UpdateTrafficPolicyCommentRequest & WithId(const char *value)
UpdateTrafficPolicyCommentRequest & WithComment(Aws::String &&value)
#define AWS_ROUTE53_API
UpdateTrafficPolicyCommentRequest & WithVersion(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateTrafficPolicyCommentRequest & WithId(Aws::String &&value)
JSON (JavaScript Object Notation).