AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AssociateHostedZoneRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53globalresolver/Route53GlobalResolverRequest.h>
9#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Route53GlobalResolver {
15namespace Model {
16
20 public:
21 AWS_ROUTE53GLOBALRESOLVER_API AssociateHostedZoneRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AssociateHostedZone"; }
28
29 AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetHostedZoneId() const { return m_hostedZoneId; }
37 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
38 template <typename HostedZoneIdT = Aws::String>
39 void SetHostedZoneId(HostedZoneIdT&& value) {
40 m_hostedZoneIdHasBeenSet = true;
41 m_hostedZoneId = std::forward<HostedZoneIdT>(value);
42 }
43 template <typename HostedZoneIdT = Aws::String>
45 SetHostedZoneId(std::forward<HostedZoneIdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
56 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
57 template <typename ResourceArnT = Aws::String>
58 void SetResourceArn(ResourceArnT&& value) {
59 m_resourceArnHasBeenSet = true;
60 m_resourceArn = std::forward<ResourceArnT>(value);
61 }
62 template <typename ResourceArnT = Aws::String>
64 SetResourceArn(std::forward<ResourceArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_hostedZoneId;
88
89 Aws::String m_resourceArn;
90
91 Aws::String m_name;
92 bool m_hostedZoneIdHasBeenSet = false;
93 bool m_resourceArnHasBeenSet = false;
94 bool m_nameHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Route53GlobalResolver
99} // namespace Aws
AssociateHostedZoneRequest & WithResourceArn(ResourceArnT &&value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override
AWS_ROUTE53GLOBALRESOLVER_API AssociateHostedZoneRequest()=default
AssociateHostedZoneRequest & WithHostedZoneId(HostedZoneIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String