AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTrafficPolicyInstanceRequest.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 "UpdateTrafficPolicyInstance"; }
36
37 AWS_ROUTE53_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetId() const{ return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
47 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
48 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
49 inline UpdateTrafficPolicyInstanceRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
50 inline UpdateTrafficPolicyInstanceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
51 inline UpdateTrafficPolicyInstanceRequest& WithId(const char* value) { SetId(value); return *this;}
53
55
59 inline long long GetTTL() const{ return m_tTL; }
60 inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
61 inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
62 inline UpdateTrafficPolicyInstanceRequest& WithTTL(long long value) { SetTTL(value); return *this;}
64
66
70 inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
71 inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
72 inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
73 inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
74 inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
76 inline UpdateTrafficPolicyInstanceRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
77 inline UpdateTrafficPolicyInstanceRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
79
81
85 inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; }
86 inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; }
87 inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; }
90 private:
91
92 Aws::String m_id;
93 bool m_idHasBeenSet = false;
94
95 long long m_tTL;
96 bool m_tTLHasBeenSet = false;
97
98 Aws::String m_trafficPolicyId;
99 bool m_trafficPolicyIdHasBeenSet = false;
100
101 int m_trafficPolicyVersion;
102 bool m_trafficPolicyVersionHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Route53
107} // namespace Aws
UpdateTrafficPolicyInstanceRequest & WithId(Aws::String &&value)
UpdateTrafficPolicyInstanceRequest & WithTrafficPolicyVersion(int value)
UpdateTrafficPolicyInstanceRequest & WithTTL(long long value)
UpdateTrafficPolicyInstanceRequest & WithTrafficPolicyId(const char *value)
UpdateTrafficPolicyInstanceRequest & WithId(const Aws::String &value)
AWS_ROUTE53_API Aws::String SerializePayload() const override
UpdateTrafficPolicyInstanceRequest & WithId(const char *value)
UpdateTrafficPolicyInstanceRequest & WithTrafficPolicyId(Aws::String &&value)
UpdateTrafficPolicyInstanceRequest & WithTrafficPolicyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String