AWS SDK for C++  1.9.40
AWS SDK for C++
CreateTrafficPolicyInstanceRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateTrafficPolicyInstance"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
44  inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
45 
50  inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
51 
56  inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
57 
62  inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
63 
68  inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
69 
74  inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
75 
80  inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
81 
86  inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
87 
88 
94  inline const Aws::String& GetName() const{ return m_name; }
95 
101  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 
108  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
109 
115  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
116 
122  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
123 
129  inline CreateTrafficPolicyInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
130 
136  inline CreateTrafficPolicyInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
137 
143  inline CreateTrafficPolicyInstanceRequest& WithName(const char* value) { SetName(value); return *this;}
144 
145 
150  inline long long GetTTL() const{ return m_tTL; }
151 
156  inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
157 
162  inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
163 
168  inline CreateTrafficPolicyInstanceRequest& WithTTL(long long value) { SetTTL(value); return *this;}
169 
170 
175  inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
176 
181  inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
182 
187  inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
188 
193  inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
194 
199  inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
200 
205  inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;}
206 
211  inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
212 
217  inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
218 
219 
224  inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; }
225 
230  inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; }
231 
236  inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; }
237 
242  inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyVersion(int value) { SetTrafficPolicyVersion(value); return *this;}
243 
244  private:
245 
246  Aws::String m_hostedZoneId;
247  bool m_hostedZoneIdHasBeenSet;
248 
249  Aws::String m_name;
250  bool m_nameHasBeenSet;
251 
252  long long m_tTL;
253  bool m_tTLHasBeenSet;
254 
255  Aws::String m_trafficPolicyId;
256  bool m_trafficPolicyIdHasBeenSet;
257 
258  int m_trafficPolicyVersion;
259  bool m_trafficPolicyVersionHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace Route53
264 } // namespace Aws
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithTrafficPolicyId
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyId(const char *value)
Definition: CreateTrafficPolicyInstanceRequest.h:217
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::GetName
const Aws::String & GetName() const
Definition: CreateTrafficPolicyInstanceRequest.h:94
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithTrafficPolicyId
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyId(Aws::String &&value)
Definition: CreateTrafficPolicyInstanceRequest.h:211
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithTTL
CreateTrafficPolicyInstanceRequest & WithTTL(long long value)
Definition: CreateTrafficPolicyInstanceRequest.h:168
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::GetTrafficPolicyVersion
int GetTrafficPolicyVersion() const
Definition: CreateTrafficPolicyInstanceRequest.h:224
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetTrafficPolicyId
void SetTrafficPolicyId(Aws::String &&value)
Definition: CreateTrafficPolicyInstanceRequest.h:193
Aws::Route53::Route53Request
Definition: Route53Request.h:17
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetHostedZoneId
void SetHostedZoneId(const char *value)
Definition: CreateTrafficPolicyInstanceRequest.h:68
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::TrafficPolicyIdHasBeenSet
bool TrafficPolicyIdHasBeenSet() const
Definition: CreateTrafficPolicyInstanceRequest.h:181
Route53Request.h
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetName
void SetName(const char *value)
Definition: CreateTrafficPolicyInstanceRequest.h:122
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateTrafficPolicyInstanceRequest.h:101
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::HostedZoneIdHasBeenSet
bool HostedZoneIdHasBeenSet() const
Definition: CreateTrafficPolicyInstanceRequest.h:50
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::GetHostedZoneId
const Aws::String & GetHostedZoneId() const
Definition: CreateTrafficPolicyInstanceRequest.h:44
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetTrafficPolicyId
void SetTrafficPolicyId(const char *value)
Definition: CreateTrafficPolicyInstanceRequest.h:199
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetTTL
void SetTTL(long long value)
Definition: CreateTrafficPolicyInstanceRequest.h:162
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateTrafficPolicyInstanceRequest.h:108
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetTrafficPolicyId
void SetTrafficPolicyId(const Aws::String &value)
Definition: CreateTrafficPolicyInstanceRequest.h:187
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetHostedZoneId
void SetHostedZoneId(Aws::String &&value)
Definition: CreateTrafficPolicyInstanceRequest.h:62
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateTrafficPolicyInstanceRequest.h:115
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::GetTrafficPolicyId
const Aws::String & GetTrafficPolicyId() const
Definition: CreateTrafficPolicyInstanceRequest.h:175
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTrafficPolicyInstanceRequest.h:35
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithName
CreateTrafficPolicyInstanceRequest & WithName(const Aws::String &value)
Definition: CreateTrafficPolicyInstanceRequest.h:129
AWSString.h
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::TrafficPolicyVersionHasBeenSet
bool TrafficPolicyVersionHasBeenSet() const
Definition: CreateTrafficPolicyInstanceRequest.h:230
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetTrafficPolicyVersion
void SetTrafficPolicyVersion(int value)
Definition: CreateTrafficPolicyInstanceRequest.h:236
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithName
CreateTrafficPolicyInstanceRequest & WithName(const char *value)
Definition: CreateTrafficPolicyInstanceRequest.h:143
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::TTLHasBeenSet
bool TTLHasBeenSet() const
Definition: CreateTrafficPolicyInstanceRequest.h:156
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SetHostedZoneId
void SetHostedZoneId(const Aws::String &value)
Definition: CreateTrafficPolicyInstanceRequest.h:56
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithHostedZoneId
CreateTrafficPolicyInstanceRequest & WithHostedZoneId(const char *value)
Definition: CreateTrafficPolicyInstanceRequest.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithTrafficPolicyId
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyId(const Aws::String &value)
Definition: CreateTrafficPolicyInstanceRequest.h:205
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest
Definition: CreateTrafficPolicyInstanceRequest.h:27
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithTrafficPolicyVersion
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyVersion(int value)
Definition: CreateTrafficPolicyInstanceRequest.h:242
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithHostedZoneId
CreateTrafficPolicyInstanceRequest & WithHostedZoneId(const Aws::String &value)
Definition: CreateTrafficPolicyInstanceRequest.h:74
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithHostedZoneId
CreateTrafficPolicyInstanceRequest & WithHostedZoneId(Aws::String &&value)
Definition: CreateTrafficPolicyInstanceRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::CreateTrafficPolicyInstanceRequest
CreateTrafficPolicyInstanceRequest()
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::WithName
CreateTrafficPolicyInstanceRequest & WithName(Aws::String &&value)
Definition: CreateTrafficPolicyInstanceRequest.h:136
Route53_EXPORTS.h
AWS_ROUTE53_API
#define AWS_ROUTE53_API
Definition: Route53_EXPORTS.h:28
Aws::Route53::Model::CreateTrafficPolicyInstanceRequest::GetTTL
long long GetTTL() const
Definition: CreateTrafficPolicyInstanceRequest.h:150