AWS SDK for C++  1.9.44
AWS SDK for C++
GetTrafficPolicyRequest.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 "GetTrafficPolicy"; }
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 GetTrafficPolicyRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
68 
72  inline GetTrafficPolicyRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
73 
77  inline GetTrafficPolicyRequest& WithId(const char* value) { SetId(value); return *this;}
78 
79 
84  inline int GetVersion() const{ return m_version; }
85 
90  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
91 
96  inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
97 
102  inline GetTrafficPolicyRequest& WithVersion(int value) { SetVersion(value); return *this;}
103 
104  private:
105 
106  Aws::String m_id;
107  bool m_idHasBeenSet;
108 
109  int m_version;
110  bool m_versionHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace Route53
115 } // namespace Aws
Aws::Route53::Model::GetTrafficPolicyRequest::WithId
GetTrafficPolicyRequest & WithId(Aws::String &&value)
Definition: GetTrafficPolicyRequest.h:72
Aws::Route53::Model::GetTrafficPolicyRequest::SetId
void SetId(Aws::String &&value)
Definition: GetTrafficPolicyRequest.h:57
Aws::Route53::Route53Request
Definition: Route53Request.h:17
Aws::Route53::Model::GetTrafficPolicyRequest::WithId
GetTrafficPolicyRequest & WithId(const Aws::String &value)
Definition: GetTrafficPolicyRequest.h:67
Aws::Route53::Model::GetTrafficPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Route53Request.h
Aws::Route53::Model::GetTrafficPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTrafficPolicyRequest.h:34
Aws::Route53::Model::GetTrafficPolicyRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: GetTrafficPolicyRequest.h:90
Aws::Route53::Model::GetTrafficPolicyRequest::GetVersion
int GetVersion() const
Definition: GetTrafficPolicyRequest.h:84
AWSString.h
Aws::Route53::Model::GetTrafficPolicyRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: GetTrafficPolicyRequest.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::Route53::Model::GetTrafficPolicyRequest::SetId
void SetId(const Aws::String &value)
Definition: GetTrafficPolicyRequest.h:52
Aws::Route53::Model::GetTrafficPolicyRequest::GetTrafficPolicyRequest
GetTrafficPolicyRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53::Model::GetTrafficPolicyRequest::SetVersion
void SetVersion(int value)
Definition: GetTrafficPolicyRequest.h:96
Aws::Route53::Model::GetTrafficPolicyRequest::WithVersion
GetTrafficPolicyRequest & WithVersion(int value)
Definition: GetTrafficPolicyRequest.h:102
Aws::Route53::Model::GetTrafficPolicyRequest::WithId
GetTrafficPolicyRequest & WithId(const char *value)
Definition: GetTrafficPolicyRequest.h:77
Route53_EXPORTS.h
Aws::Route53::Model::GetTrafficPolicyRequest::SetId
void SetId(const char *value)
Definition: GetTrafficPolicyRequest.h:62
Aws::Route53::Model::GetTrafficPolicyRequest
Definition: GetTrafficPolicyRequest.h:26
Aws::Route53::Model::GetTrafficPolicyRequest::GetId
const Aws::String & GetId() const
Definition: GetTrafficPolicyRequest.h:42
AWS_ROUTE53_API
#define AWS_ROUTE53_API
Definition: Route53_EXPORTS.h:28