AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VpcOrigin.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/VpcOriginEndpointConfig.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
28class VpcOrigin {
29 public:
30 AWS_CLOUDFRONT_API VpcOrigin() = default;
31 AWS_CLOUDFRONT_API VpcOrigin(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API VpcOrigin& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 VpcOrigin& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
66 VpcOrigin& WithArn(ArnT&& value) {
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetAccountId() const { return m_accountId; }
78 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
79 template <typename AccountIdT = Aws::String>
80 void SetAccountId(AccountIdT&& value) {
81 m_accountIdHasBeenSet = true;
82 m_accountId = std::forward<AccountIdT>(value);
83 }
84 template <typename AccountIdT = Aws::String>
85 VpcOrigin& WithAccountId(AccountIdT&& value) {
86 SetAccountId(std::forward<AccountIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 template <typename StatusT = Aws::String>
98 void SetStatus(StatusT&& value) {
99 m_statusHasBeenSet = true;
100 m_status = std::forward<StatusT>(value);
101 }
102 template <typename StatusT = Aws::String>
103 VpcOrigin& WithStatus(StatusT&& value) {
104 SetStatus(std::forward<StatusT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
114 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
115 template <typename CreatedTimeT = Aws::Utils::DateTime>
116 void SetCreatedTime(CreatedTimeT&& value) {
117 m_createdTimeHasBeenSet = true;
118 m_createdTime = std::forward<CreatedTimeT>(value);
119 }
120 template <typename CreatedTimeT = Aws::Utils::DateTime>
121 VpcOrigin& WithCreatedTime(CreatedTimeT&& value) {
122 SetCreatedTime(std::forward<CreatedTimeT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
132 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
133 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
134 void SetLastModifiedTime(LastModifiedTimeT&& value) {
135 m_lastModifiedTimeHasBeenSet = true;
136 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
137 }
138 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
139 VpcOrigin& WithLastModifiedTime(LastModifiedTimeT&& value) {
140 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
141 return *this;
142 }
144
146
149 inline const VpcOriginEndpointConfig& GetVpcOriginEndpointConfig() const { return m_vpcOriginEndpointConfig; }
150 inline bool VpcOriginEndpointConfigHasBeenSet() const { return m_vpcOriginEndpointConfigHasBeenSet; }
151 template <typename VpcOriginEndpointConfigT = VpcOriginEndpointConfig>
152 void SetVpcOriginEndpointConfig(VpcOriginEndpointConfigT&& value) {
153 m_vpcOriginEndpointConfigHasBeenSet = true;
154 m_vpcOriginEndpointConfig = std::forward<VpcOriginEndpointConfigT>(value);
155 }
156 template <typename VpcOriginEndpointConfigT = VpcOriginEndpointConfig>
157 VpcOrigin& WithVpcOriginEndpointConfig(VpcOriginEndpointConfigT&& value) {
158 SetVpcOriginEndpointConfig(std::forward<VpcOriginEndpointConfigT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_id;
164
165 Aws::String m_arn;
166
167 Aws::String m_accountId;
168
169 Aws::String m_status;
170
171 Aws::Utils::DateTime m_createdTime{};
172
173 Aws::Utils::DateTime m_lastModifiedTime{};
174
175 VpcOriginEndpointConfig m_vpcOriginEndpointConfig;
176 bool m_idHasBeenSet = false;
177 bool m_arnHasBeenSet = false;
178 bool m_accountIdHasBeenSet = false;
179 bool m_statusHasBeenSet = false;
180 bool m_createdTimeHasBeenSet = false;
181 bool m_lastModifiedTimeHasBeenSet = false;
182 bool m_vpcOriginEndpointConfigHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace CloudFront
187} // namespace Aws
void SetCreatedTime(CreatedTimeT &&value)
Definition VpcOrigin.h:116
const VpcOriginEndpointConfig & GetVpcOriginEndpointConfig() const
Definition VpcOrigin.h:149
const Aws::String & GetAccountId() const
Definition VpcOrigin.h:77
void SetVpcOriginEndpointConfig(VpcOriginEndpointConfigT &&value)
Definition VpcOrigin.h:152
void SetStatus(StatusT &&value)
Definition VpcOrigin.h:98
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
VpcOrigin & WithAccountId(AccountIdT &&value)
Definition VpcOrigin.h:85
AWS_CLOUDFRONT_API VpcOrigin()=default
void SetAccountId(AccountIdT &&value)
Definition VpcOrigin.h:80
VpcOrigin & WithVpcOriginEndpointConfig(VpcOriginEndpointConfigT &&value)
Definition VpcOrigin.h:157
VpcOrigin & WithArn(ArnT &&value)
Definition VpcOrigin.h:66
AWS_CLOUDFRONT_API VpcOrigin & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API VpcOrigin(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetArn() const
Definition VpcOrigin.h:58
bool VpcOriginEndpointConfigHasBeenSet() const
Definition VpcOrigin.h:150
const Aws::Utils::DateTime & GetCreatedTime() const
Definition VpcOrigin.h:113
VpcOrigin & WithId(IdT &&value)
Definition VpcOrigin.h:48
const Aws::String & GetId() const
Definition VpcOrigin.h:40
VpcOrigin & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition VpcOrigin.h:139
VpcOrigin & WithCreatedTime(CreatedTimeT &&value)
Definition VpcOrigin.h:121
VpcOrigin & WithStatus(StatusT &&value)
Definition VpcOrigin.h:103
const Aws::String & GetStatus() const
Definition VpcOrigin.h:95
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition VpcOrigin.h:134
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition VpcOrigin.h:131
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String