AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTrafficPolicyInstanceRequest.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Route53
15{
16namespace 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_ROUTE53_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
46 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
47 inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
48 inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
49 inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
51 inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
52 inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
54
56
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CreateTrafficPolicyInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CreateTrafficPolicyInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CreateTrafficPolicyInstanceRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
76 inline long long GetTTL() const{ return m_tTL; }
77 inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
78 inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
79 inline CreateTrafficPolicyInstanceRequest& WithTTL(long long value) { SetTTL(value); return *this;}
81
83
87 inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
88 inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
89 inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
90 inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
91 inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
93 inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
94 inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
96
98
102 inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; }
103 inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; }
104 inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; }
107 private:
108
109 Aws::String m_hostedZoneId;
110 bool m_hostedZoneIdHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 long long m_tTL;
116 bool m_tTLHasBeenSet = false;
117
118 Aws::String m_trafficPolicyId;
119 bool m_trafficPolicyIdHasBeenSet = false;
120
121 int m_trafficPolicyVersion;
122 bool m_trafficPolicyVersionHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Route53
127} // namespace Aws
CreateTrafficPolicyInstanceRequest & WithHostedZoneId(const Aws::String &value)
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyId(const Aws::String &value)
CreateTrafficPolicyInstanceRequest & WithName(const char *value)
CreateTrafficPolicyInstanceRequest & WithHostedZoneId(Aws::String &&value)
CreateTrafficPolicyInstanceRequest & WithTTL(long long value)
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyId(const char *value)
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyId(Aws::String &&value)
CreateTrafficPolicyInstanceRequest & WithName(Aws::String &&value)
CreateTrafficPolicyInstanceRequest & WithHostedZoneId(const char *value)
CreateTrafficPolicyInstanceRequest & WithTrafficPolicyVersion(int value)
AWS_ROUTE53_API Aws::String SerializePayload() const override
CreateTrafficPolicyInstanceRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String