AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateTrafficPolicyCommentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Route53
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateTrafficPolicyComment"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetId() const{ return m_id; }
44 
49  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
73  inline UpdateTrafficPolicyCommentRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
74 
79  inline UpdateTrafficPolicyCommentRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 
85  inline UpdateTrafficPolicyCommentRequest& WithId(const char* value) { SetId(value); return *this;}
86 
87 
92  inline int GetVersion() const{ return m_version; }
93 
98  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
99 
104  inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
105 
110  inline UpdateTrafficPolicyCommentRequest& WithVersion(int value) { SetVersion(value); return *this;}
111 
112 
116  inline const Aws::String& GetComment() const{ return m_comment; }
117 
121  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
122 
126  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
127 
131  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
132 
136  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
137 
141  inline UpdateTrafficPolicyCommentRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
142 
146  inline UpdateTrafficPolicyCommentRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
147 
151  inline UpdateTrafficPolicyCommentRequest& WithComment(const char* value) { SetComment(value); return *this;}
152 
153  private:
154 
155  Aws::String m_id;
156  bool m_idHasBeenSet;
157 
158  int m_version;
159  bool m_versionHasBeenSet;
160 
161  Aws::String m_comment;
162  bool m_commentHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace Route53
167 } // 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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateTrafficPolicyCommentRequest & WithId(Aws::String &&value)