AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
AssociateCustomDomainResult.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/CustomDomain.h>
9#include <aws/apprunner/model/VpcDNSTarget.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace AppRunner {
26namespace Model {
28 public:
29 AWS_APPRUNNER_API AssociateCustomDomainResult() = default;
32
34
38 inline const Aws::String& GetDNSTarget() const { return m_dNSTarget; }
39 template <typename DNSTargetT = Aws::String>
40 void SetDNSTarget(DNSTargetT&& value) {
41 m_dNSTargetHasBeenSet = true;
42 m_dNSTarget = std::forward<DNSTargetT>(value);
43 }
44 template <typename DNSTargetT = Aws::String>
46 SetDNSTarget(std::forward<DNSTargetT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
57 template <typename ServiceArnT = Aws::String>
58 void SetServiceArn(ServiceArnT&& value) {
59 m_serviceArnHasBeenSet = true;
60 m_serviceArn = std::forward<ServiceArnT>(value);
61 }
62 template <typename ServiceArnT = Aws::String>
64 SetServiceArn(std::forward<ServiceArnT>(value));
65 return *this;
66 }
68
70
73 inline const CustomDomain& GetCustomDomain() const { return m_customDomain; }
74 template <typename CustomDomainT = CustomDomain>
75 void SetCustomDomain(CustomDomainT&& value) {
76 m_customDomainHasBeenSet = true;
77 m_customDomain = std::forward<CustomDomainT>(value);
78 }
79 template <typename CustomDomainT = CustomDomain>
81 SetCustomDomain(std::forward<CustomDomainT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<VpcDNSTarget>& GetVpcDNSTargets() const { return m_vpcDNSTargets; }
91 template <typename VpcDNSTargetsT = Aws::Vector<VpcDNSTarget>>
92 void SetVpcDNSTargets(VpcDNSTargetsT&& value) {
93 m_vpcDNSTargetsHasBeenSet = true;
94 m_vpcDNSTargets = std::forward<VpcDNSTargetsT>(value);
95 }
96 template <typename VpcDNSTargetsT = Aws::Vector<VpcDNSTarget>>
98 SetVpcDNSTargets(std::forward<VpcDNSTargetsT>(value));
99 return *this;
100 }
101 template <typename VpcDNSTargetsT = VpcDNSTarget>
103 m_vpcDNSTargetsHasBeenSet = true;
104 m_vpcDNSTargets.emplace_back(std::forward<VpcDNSTargetsT>(value));
105 return *this;
106 }
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
124
125 private:
126 Aws::String m_dNSTarget;
127
128 Aws::String m_serviceArn;
129
130 CustomDomain m_customDomain;
131
132 Aws::Vector<VpcDNSTarget> m_vpcDNSTargets;
133
134 Aws::String m_requestId;
135 Aws::Http::HttpResponseCode m_HttpResponseCode;
136 bool m_dNSTargetHasBeenSet = false;
137 bool m_serviceArnHasBeenSet = false;
138 bool m_customDomainHasBeenSet = false;
139 bool m_vpcDNSTargetsHasBeenSet = false;
140 bool m_requestIdHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace AppRunner
145} // namespace Aws
AWS_APPRUNNER_API AssociateCustomDomainResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateCustomDomainResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< VpcDNSTarget > & GetVpcDNSTargets() const
AssociateCustomDomainResult & AddVpcDNSTargets(VpcDNSTargetsT &&value)
AWS_APPRUNNER_API AssociateCustomDomainResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateCustomDomainResult & WithVpcDNSTargets(VpcDNSTargetsT &&value)
AWS_APPRUNNER_API AssociateCustomDomainResult()=default
AssociateCustomDomainResult & WithDNSTarget(DNSTargetT &&value)
AssociateCustomDomainResult & WithServiceArn(ServiceArnT &&value)
AssociateCustomDomainResult & WithCustomDomain(CustomDomainT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue