AWS SDK for C++  1.9.20
AWS SDK for C++
Invalidation.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
64  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 
70  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
71 
76  inline Invalidation& WithId(const Aws::String& value) { SetId(value); return *this;}
77 
82  inline Invalidation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
83 
88  inline Invalidation& WithId(const char* value) { SetId(value); return *this;}
89 
90 
95  inline const Aws::String& GetStatus() const{ return m_status; }
96 
101  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 
107  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
108 
113  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
114 
119  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
120 
125  inline Invalidation& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
126 
131  inline Invalidation& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
132 
137  inline Invalidation& WithStatus(const char* value) { SetStatus(value); return *this;}
138 
139 
143  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
144 
148  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
149 
153  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
154 
158  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
159 
163  inline Invalidation& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
164 
168  inline Invalidation& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
169 
170 
174  inline const InvalidationBatch& GetInvalidationBatch() const{ return m_invalidationBatch; }
175 
179  inline bool InvalidationBatchHasBeenSet() const { return m_invalidationBatchHasBeenSet; }
180 
184  inline void SetInvalidationBatch(const InvalidationBatch& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = value; }
185 
189  inline void SetInvalidationBatch(InvalidationBatch&& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = std::move(value); }
190 
194  inline Invalidation& WithInvalidationBatch(const InvalidationBatch& value) { SetInvalidationBatch(value); return *this;}
195 
199  inline Invalidation& WithInvalidationBatch(InvalidationBatch&& value) { SetInvalidationBatch(std::move(value)); return *this;}
200 
201  private:
202 
203  Aws::String m_id;
204  bool m_idHasBeenSet;
205 
206  Aws::String m_status;
207  bool m_statusHasBeenSet;
208 
209  Aws::Utils::DateTime m_createTime;
210  bool m_createTimeHasBeenSet;
211 
212  InvalidationBatch m_invalidationBatch;
213  bool m_invalidationBatchHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace CloudFront
218 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CloudFront::Model::InvalidationBatch
Definition: InvalidationBatch.h:32
Aws::CloudFront::Model::Invalidation::WithId
Invalidation & WithId(Aws::String &&value)
Definition: Invalidation.h:82
Aws::CloudFront::Model::Invalidation::WithStatus
Invalidation & WithStatus(const Aws::String &value)
Definition: Invalidation.h:125
Aws::CloudFront::Model::Invalidation::SetStatus
void SetStatus(const char *value)
Definition: Invalidation.h:119
Aws::CloudFront::Model::Invalidation::SetInvalidationBatch
void SetInvalidationBatch(const InvalidationBatch &value)
Definition: Invalidation.h:184
Aws::CloudFront::Model::Invalidation::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Invalidation.h:52
DateTime.h
Aws::CloudFront::Model::Invalidation::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::Invalidation::WithId
Invalidation & WithId(const Aws::String &value)
Definition: Invalidation.h:76
Aws::CloudFront::Model::Invalidation::SetId
void SetId(const Aws::String &value)
Definition: Invalidation.h:58
Aws::CloudFront::Model::Invalidation::InvalidationBatchHasBeenSet
bool InvalidationBatchHasBeenSet() const
Definition: Invalidation.h:179
Aws::CloudFront::Model::Invalidation::WithStatus
Invalidation & WithStatus(const char *value)
Definition: Invalidation.h:137
Aws::CloudFront::Model::Invalidation::GetId
const Aws::String & GetId() const
Definition: Invalidation.h:46
Aws::CloudFront::Model::Invalidation::SetStatus
void SetStatus(const Aws::String &value)
Definition: Invalidation.h:107
Aws::CloudFront::Model::Invalidation::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: Invalidation.h:148
Aws::CloudFront::Model::Invalidation::SetCreateTime
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition: Invalidation.h:158
Aws::CloudFront::Model::Invalidation::GetInvalidationBatch
const InvalidationBatch & GetInvalidationBatch() const
Definition: Invalidation.h:174
Aws::CloudFront::Model::Invalidation::Invalidation
Invalidation()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::Invalidation::WithCreateTime
Invalidation & WithCreateTime(const Aws::Utils::DateTime &value)
Definition: Invalidation.h:163
Aws::CloudFront::Model::Invalidation::SetId
void SetId(const char *value)
Definition: Invalidation.h:70
Aws::CloudFront::Model::Invalidation
Definition: Invalidation.h:33
Aws::CloudFront::Model::Invalidation::WithInvalidationBatch
Invalidation & WithInvalidationBatch(const InvalidationBatch &value)
Definition: Invalidation.h:194
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::Invalidation::GetStatus
const Aws::String & GetStatus() const
Definition: Invalidation.h:95
Aws::CloudFront::Model::Invalidation::WithInvalidationBatch
Invalidation & WithInvalidationBatch(InvalidationBatch &&value)
Definition: Invalidation.h:199
CloudFront_EXPORTS.h
Aws::CloudFront::Model::Invalidation::GetCreateTime
const Aws::Utils::DateTime & GetCreateTime() const
Definition: Invalidation.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::Invalidation::Invalidation
Invalidation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Invalidation::SetId
void SetId(Aws::String &&value)
Definition: Invalidation.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::Invalidation::operator=
Invalidation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Invalidation::SetStatus
void SetStatus(Aws::String &&value)
Definition: Invalidation.h:113
Aws::CloudFront::Model::Invalidation::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Invalidation.h:101
Aws::CloudFront::Model::Invalidation::WithId
Invalidation & WithId(const char *value)
Definition: Invalidation.h:88
Aws::CloudFront::Model::Invalidation::SetInvalidationBatch
void SetInvalidationBatch(InvalidationBatch &&value)
Definition: Invalidation.h:189
Aws::CloudFront::Model::Invalidation::WithStatus
Invalidation & WithStatus(Aws::String &&value)
Definition: Invalidation.h:131
InvalidationBatch.h
Aws::CloudFront::Model::Invalidation::SetCreateTime
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition: Invalidation.h:153
Aws::CloudFront::Model::Invalidation::WithCreateTime
Invalidation & WithCreateTime(Aws::Utils::DateTime &&value)
Definition: Invalidation.h:168