AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
UpdateTrafficPolicyCommentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/route53/Route53_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Route53 {
15namespace Model {
16
24 public:
25 AWS_ROUTE53_API UpdateTrafficPolicyCommentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateTrafficPolicyComment"; }
32
33 AWS_ROUTE53_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
59 inline int GetVersion() const { return m_version; }
60 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
61 inline void SetVersion(int value) {
62 m_versionHasBeenSet = true;
63 m_version = value;
64 }
66 SetVersion(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetComment() const { return m_comment; }
76 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
77 template <typename CommentT = Aws::String>
78 void SetComment(CommentT&& value) {
79 m_commentHasBeenSet = true;
80 m_comment = std::forward<CommentT>(value);
81 }
82 template <typename CommentT = Aws::String>
84 SetComment(std::forward<CommentT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_id;
90 bool m_idHasBeenSet = false;
91
92 int m_version{0};
93 bool m_versionHasBeenSet = false;
94
95 Aws::String m_comment;
96 bool m_commentHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Route53
101} // namespace Aws
AWS_ROUTE53_API Aws::String SerializePayload() const override
UpdateTrafficPolicyCommentRequest & WithComment(CommentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String