AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
VpcOriginSummary.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/VpcIpAddressType.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
29 public:
30 AWS_CLOUDFRONT_API VpcOriginSummary() = default;
31 AWS_CLOUDFRONT_API VpcOriginSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API VpcOriginSummary& 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 VpcOriginSummary& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 VpcOriginSummary& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 template <typename StatusT = Aws::String>
79 void SetStatus(StatusT&& value) {
80 m_statusHasBeenSet = true;
81 m_status = std::forward<StatusT>(value);
82 }
83 template <typename StatusT = Aws::String>
84 VpcOriginSummary& WithStatus(StatusT&& value) {
85 SetStatus(std::forward<StatusT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
95 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
96 template <typename CreatedTimeT = Aws::Utils::DateTime>
97 void SetCreatedTime(CreatedTimeT&& value) {
98 m_createdTimeHasBeenSet = true;
99 m_createdTime = std::forward<CreatedTimeT>(value);
100 }
101 template <typename CreatedTimeT = Aws::Utils::DateTime>
102 VpcOriginSummary& WithCreatedTime(CreatedTimeT&& value) {
103 SetCreatedTime(std::forward<CreatedTimeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
113 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
114 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
115 void SetLastModifiedTime(LastModifiedTimeT&& value) {
116 m_lastModifiedTimeHasBeenSet = true;
117 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
118 }
119 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
120 VpcOriginSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
121 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetArn() const { return m_arn; }
131 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
132 template <typename ArnT = Aws::String>
133 void SetArn(ArnT&& value) {
134 m_arnHasBeenSet = true;
135 m_arn = std::forward<ArnT>(value);
136 }
137 template <typename ArnT = Aws::String>
138 VpcOriginSummary& WithArn(ArnT&& value) {
139 SetArn(std::forward<ArnT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetAccountId() const { return m_accountId; }
150 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
151 template <typename AccountIdT = Aws::String>
152 void SetAccountId(AccountIdT&& value) {
153 m_accountIdHasBeenSet = true;
154 m_accountId = std::forward<AccountIdT>(value);
155 }
156 template <typename AccountIdT = Aws::String>
157 VpcOriginSummary& WithAccountId(AccountIdT&& value) {
158 SetAccountId(std::forward<AccountIdT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetOriginEndpointArn() const { return m_originEndpointArn; }
168 inline bool OriginEndpointArnHasBeenSet() const { return m_originEndpointArnHasBeenSet; }
169 template <typename OriginEndpointArnT = Aws::String>
170 void SetOriginEndpointArn(OriginEndpointArnT&& value) {
171 m_originEndpointArnHasBeenSet = true;
172 m_originEndpointArn = std::forward<OriginEndpointArnT>(value);
173 }
174 template <typename OriginEndpointArnT = Aws::String>
175 VpcOriginSummary& WithOriginEndpointArn(OriginEndpointArnT&& value) {
176 SetOriginEndpointArn(std::forward<OriginEndpointArnT>(value));
177 return *this;
178 }
180
182
187 inline VpcIpAddressType GetIpAddressType() const { return m_ipAddressType; }
188 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
190 m_ipAddressTypeHasBeenSet = true;
191 m_ipAddressType = value;
192 }
194 SetIpAddressType(value);
195 return *this;
196 }
198 private:
199 Aws::String m_id;
200
201 Aws::String m_name;
202
203 Aws::String m_status;
204
205 Aws::Utils::DateTime m_createdTime{};
206
207 Aws::Utils::DateTime m_lastModifiedTime{};
208
209 Aws::String m_arn;
210
211 Aws::String m_accountId;
212
213 Aws::String m_originEndpointArn;
214
216 bool m_idHasBeenSet = false;
217 bool m_nameHasBeenSet = false;
218 bool m_statusHasBeenSet = false;
219 bool m_createdTimeHasBeenSet = false;
220 bool m_lastModifiedTimeHasBeenSet = false;
221 bool m_arnHasBeenSet = false;
222 bool m_accountIdHasBeenSet = false;
223 bool m_originEndpointArnHasBeenSet = false;
224 bool m_ipAddressTypeHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace CloudFront
229} // namespace Aws
VpcOriginSummary & WithIpAddressType(VpcIpAddressType value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetCreatedTime(CreatedTimeT &&value)
VpcOriginSummary & WithArn(ArnT &&value)
VpcOriginSummary & WithName(NameT &&value)
VpcOriginSummary & WithId(IdT &&value)
const Aws::String & GetOriginEndpointArn() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
VpcOriginSummary & WithAccountId(AccountIdT &&value)
const Aws::String & GetStatus() const
VpcOriginSummary & WithStatus(StatusT &&value)
AWS_CLOUDFRONT_API VpcOriginSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API VpcOriginSummary()=default
const Aws::Utils::DateTime & GetCreatedTime() const
void SetIpAddressType(VpcIpAddressType value)
VpcOriginSummary & WithOriginEndpointArn(OriginEndpointArnT &&value)
VpcOriginSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetOriginEndpointArn(OriginEndpointArnT &&value)
VpcOriginSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_CLOUDFRONT_API VpcOriginSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAccountId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String