AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetHostedZoneResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53/Route53_EXPORTS.h>
11#include <aws/route53/model/DelegationSet.h>
12#include <aws/route53/model/HostedZone.h>
13#include <aws/route53/model/VPC.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace Route53 {
27namespace Model {
35 public:
36 AWS_ROUTE53_API GetHostedZoneResult() = default;
39
41
45 inline const HostedZone& GetHostedZone() const { return m_hostedZone; }
46 template <typename HostedZoneT = HostedZone>
47 void SetHostedZone(HostedZoneT&& value) {
48 m_hostedZoneHasBeenSet = true;
49 m_hostedZone = std::forward<HostedZoneT>(value);
50 }
51 template <typename HostedZoneT = HostedZone>
52 GetHostedZoneResult& WithHostedZone(HostedZoneT&& value) {
53 SetHostedZone(std::forward<HostedZoneT>(value));
54 return *this;
55 }
57
59
63 inline const DelegationSet& GetDelegationSet() const { return m_delegationSet; }
64 template <typename DelegationSetT = DelegationSet>
65 void SetDelegationSet(DelegationSetT&& value) {
66 m_delegationSetHasBeenSet = true;
67 m_delegationSet = std::forward<DelegationSetT>(value);
68 }
69 template <typename DelegationSetT = DelegationSet>
70 GetHostedZoneResult& WithDelegationSet(DelegationSetT&& value) {
71 SetDelegationSet(std::forward<DelegationSetT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<VPC>& GetVPCs() const { return m_vPCs; }
82 template <typename VPCsT = Aws::Vector<VPC>>
83 void SetVPCs(VPCsT&& value) {
84 m_vPCsHasBeenSet = true;
85 m_vPCs = std::forward<VPCsT>(value);
86 }
87 template <typename VPCsT = Aws::Vector<VPC>>
88 GetHostedZoneResult& WithVPCs(VPCsT&& value) {
89 SetVPCs(std::forward<VPCsT>(value));
90 return *this;
91 }
92 template <typename VPCsT = VPC>
93 GetHostedZoneResult& AddVPCs(VPCsT&& value) {
94 m_vPCsHasBeenSet = true;
95 m_vPCs.emplace_back(std::forward<VPCsT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 template <typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) {
105 m_requestIdHasBeenSet = true;
106 m_requestId = std::forward<RequestIdT>(value);
107 }
108 template <typename RequestIdT = Aws::String>
109 GetHostedZoneResult& WithRequestId(RequestIdT&& value) {
110 SetRequestId(std::forward<RequestIdT>(value));
111 return *this;
112 }
114 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
115
116 private:
117 HostedZone m_hostedZone;
118
119 DelegationSet m_delegationSet;
120
121 Aws::Vector<VPC> m_vPCs;
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_hostedZoneHasBeenSet = false;
126 bool m_delegationSetHasBeenSet = false;
127 bool m_vPCsHasBeenSet = false;
128 bool m_requestIdHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Route53
133} // namespace Aws
GetHostedZoneResult & WithDelegationSet(DelegationSetT &&value)
GetHostedZoneResult & AddVPCs(VPCsT &&value)
const DelegationSet & GetDelegationSet() const
GetHostedZoneResult & WithRequestId(RequestIdT &&value)
GetHostedZoneResult & WithHostedZone(HostedZoneT &&value)
AWS_ROUTE53_API GetHostedZoneResult()=default
GetHostedZoneResult & WithVPCs(VPCsT &&value)
AWS_ROUTE53_API GetHostedZoneResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< VPC > & GetVPCs() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetDelegationSet(DelegationSetT &&value)
AWS_ROUTE53_API GetHostedZoneResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument