AWS SDK for C++  1.9.40
AWS SDK for C++
CreateTrafficPolicyVersionRequest.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 "CreateTrafficPolicyVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetId() const{ return m_id; }
43 
47  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 
52  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 
57  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
58 
62  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 
67  inline CreateTrafficPolicyVersionRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
68 
72  inline CreateTrafficPolicyVersionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
73 
77  inline CreateTrafficPolicyVersionRequest& WithId(const char* value) { SetId(value); return *this;}
78 
79 
86  inline const Aws::String& GetDocument() const{ return m_document; }
87 
94  inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
95 
102  inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
103 
110  inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
111 
118  inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
119 
126  inline CreateTrafficPolicyVersionRequest& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
127 
134  inline CreateTrafficPolicyVersionRequest& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
135 
142  inline CreateTrafficPolicyVersionRequest& WithDocument(const char* value) { SetDocument(value); return *this;}
143 
144 
149  inline const Aws::String& GetComment() const{ return m_comment; }
150 
155  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
156 
161  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
162 
167  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
168 
173  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
174 
179  inline CreateTrafficPolicyVersionRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
180 
185  inline CreateTrafficPolicyVersionRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
186 
191  inline CreateTrafficPolicyVersionRequest& WithComment(const char* value) { SetComment(value); return *this;}
192 
193  private:
194 
195  Aws::String m_id;
196  bool m_idHasBeenSet;
197 
198  Aws::String m_document;
199  bool m_documentHasBeenSet;
200 
201  Aws::String m_comment;
202  bool m_commentHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace Route53
207 } // namespace Aws
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithDocument
CreateTrafficPolicyVersionRequest & WithDocument(const Aws::String &value)
Definition: CreateTrafficPolicyVersionRequest.h:126
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::DocumentHasBeenSet
bool DocumentHasBeenSet() const
Definition: CreateTrafficPolicyVersionRequest.h:94
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetId
void SetId(const char *value)
Definition: CreateTrafficPolicyVersionRequest.h:62
Aws::Route53::Route53Request
Definition: Route53Request.h:17
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithId
CreateTrafficPolicyVersionRequest & WithId(const char *value)
Definition: CreateTrafficPolicyVersionRequest.h:77
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithComment
CreateTrafficPolicyVersionRequest & WithComment(const Aws::String &value)
Definition: CreateTrafficPolicyVersionRequest.h:179
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetDocument
void SetDocument(Aws::String &&value)
Definition: CreateTrafficPolicyVersionRequest.h:110
Route53Request.h
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::GetComment
const Aws::String & GetComment() const
Definition: CreateTrafficPolicyVersionRequest.h:149
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::GetDocument
const Aws::String & GetDocument() const
Definition: CreateTrafficPolicyVersionRequest.h:86
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: CreateTrafficPolicyVersionRequest.h:155
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::CreateTrafficPolicyVersionRequest
CreateTrafficPolicyVersionRequest()
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetComment
void SetComment(const Aws::String &value)
Definition: CreateTrafficPolicyVersionRequest.h:161
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetDocument
void SetDocument(const char *value)
Definition: CreateTrafficPolicyVersionRequest.h:118
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetId
void SetId(const Aws::String &value)
Definition: CreateTrafficPolicyVersionRequest.h:52
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetComment
void SetComment(Aws::String &&value)
Definition: CreateTrafficPolicyVersionRequest.h:167
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithId
CreateTrafficPolicyVersionRequest & WithId(const Aws::String &value)
Definition: CreateTrafficPolicyVersionRequest.h:67
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithDocument
CreateTrafficPolicyVersionRequest & WithDocument(const char *value)
Definition: CreateTrafficPolicyVersionRequest.h:142
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithComment
CreateTrafficPolicyVersionRequest & WithComment(Aws::String &&value)
Definition: CreateTrafficPolicyVersionRequest.h:185
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: CreateTrafficPolicyVersionRequest.h:47
AWSString.h
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetComment
void SetComment(const char *value)
Definition: CreateTrafficPolicyVersionRequest.h:173
Aws::Route53::Model::CreateTrafficPolicyVersionRequest
Definition: CreateTrafficPolicyVersionRequest.h:26
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetDocument
void SetDocument(const Aws::String &value)
Definition: CreateTrafficPolicyVersionRequest.h:102
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithComment
CreateTrafficPolicyVersionRequest & WithComment(const char *value)
Definition: CreateTrafficPolicyVersionRequest.h:191
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithDocument
CreateTrafficPolicyVersionRequest & WithDocument(Aws::String &&value)
Definition: CreateTrafficPolicyVersionRequest.h:134
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::SetId
void SetId(Aws::String &&value)
Definition: CreateTrafficPolicyVersionRequest.h:57
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::WithId
CreateTrafficPolicyVersionRequest & WithId(Aws::String &&value)
Definition: CreateTrafficPolicyVersionRequest.h:72
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::GetId
const Aws::String & GetId() const
Definition: CreateTrafficPolicyVersionRequest.h:42
Route53_EXPORTS.h
Aws::Route53::Model::CreateTrafficPolicyVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTrafficPolicyVersionRequest.h:34
AWS_ROUTE53_API
#define AWS_ROUTE53_API
Definition: Route53_EXPORTS.h:28