AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VpcOriginSummary.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
28 public:
29 AWS_CLOUDFRONT_API VpcOriginSummary() = default;
30 AWS_CLOUDFRONT_API VpcOriginSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFRONT_API VpcOriginSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 VpcOriginSummary& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 VpcOriginSummary& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 template <typename StatusT = Aws::String>
78 void SetStatus(StatusT&& value) {
79 m_statusHasBeenSet = true;
80 m_status = std::forward<StatusT>(value);
81 }
82 template <typename StatusT = Aws::String>
83 VpcOriginSummary& WithStatus(StatusT&& value) {
84 SetStatus(std::forward<StatusT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
94 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
95 template <typename CreatedTimeT = Aws::Utils::DateTime>
96 void SetCreatedTime(CreatedTimeT&& value) {
97 m_createdTimeHasBeenSet = true;
98 m_createdTime = std::forward<CreatedTimeT>(value);
99 }
100 template <typename CreatedTimeT = Aws::Utils::DateTime>
101 VpcOriginSummary& WithCreatedTime(CreatedTimeT&& value) {
102 SetCreatedTime(std::forward<CreatedTimeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
112 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
113 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
114 void SetLastModifiedTime(LastModifiedTimeT&& value) {
115 m_lastModifiedTimeHasBeenSet = true;
116 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
117 }
118 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
119 VpcOriginSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
120 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetArn() const { return m_arn; }
130 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
131 template <typename ArnT = Aws::String>
132 void SetArn(ArnT&& value) {
133 m_arnHasBeenSet = true;
134 m_arn = std::forward<ArnT>(value);
135 }
136 template <typename ArnT = Aws::String>
137 VpcOriginSummary& WithArn(ArnT&& value) {
138 SetArn(std::forward<ArnT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetAccountId() const { return m_accountId; }
149 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
150 template <typename AccountIdT = Aws::String>
151 void SetAccountId(AccountIdT&& value) {
152 m_accountIdHasBeenSet = true;
153 m_accountId = std::forward<AccountIdT>(value);
154 }
155 template <typename AccountIdT = Aws::String>
156 VpcOriginSummary& WithAccountId(AccountIdT&& value) {
157 SetAccountId(std::forward<AccountIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetOriginEndpointArn() const { return m_originEndpointArn; }
167 inline bool OriginEndpointArnHasBeenSet() const { return m_originEndpointArnHasBeenSet; }
168 template <typename OriginEndpointArnT = Aws::String>
169 void SetOriginEndpointArn(OriginEndpointArnT&& value) {
170 m_originEndpointArnHasBeenSet = true;
171 m_originEndpointArn = std::forward<OriginEndpointArnT>(value);
172 }
173 template <typename OriginEndpointArnT = Aws::String>
174 VpcOriginSummary& WithOriginEndpointArn(OriginEndpointArnT&& value) {
175 SetOriginEndpointArn(std::forward<OriginEndpointArnT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_id;
181
182 Aws::String m_name;
183
184 Aws::String m_status;
185
186 Aws::Utils::DateTime m_createdTime{};
187
188 Aws::Utils::DateTime m_lastModifiedTime{};
189
190 Aws::String m_arn;
191
192 Aws::String m_accountId;
193
194 Aws::String m_originEndpointArn;
195 bool m_idHasBeenSet = false;
196 bool m_nameHasBeenSet = false;
197 bool m_statusHasBeenSet = false;
198 bool m_createdTimeHasBeenSet = false;
199 bool m_lastModifiedTimeHasBeenSet = false;
200 bool m_arnHasBeenSet = false;
201 bool m_accountIdHasBeenSet = false;
202 bool m_originEndpointArnHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace CloudFront
207} // namespace Aws
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
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