AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Invalidation.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cloudfront/model/InvalidationBatch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CLOUDFRONT_API Invalidation();
36 AWS_CLOUDFRONT_API Invalidation(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API Invalidation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Invalidation& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Invalidation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Invalidation& WithId(const char* value) { SetId(value); return *this;}
56
58
62 inline const Aws::String& GetStatus() const{ return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
65 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
67 inline Invalidation& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
68 inline Invalidation& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
69 inline Invalidation& WithStatus(const char* value) { SetStatus(value); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
77 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
78 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
79 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
80 inline Invalidation& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
81 inline Invalidation& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
83
85
88 inline const InvalidationBatch& GetInvalidationBatch() const{ return m_invalidationBatch; }
89 inline bool InvalidationBatchHasBeenSet() const { return m_invalidationBatchHasBeenSet; }
90 inline void SetInvalidationBatch(const InvalidationBatch& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = value; }
91 inline void SetInvalidationBatch(InvalidationBatch&& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = std::move(value); }
92 inline Invalidation& WithInvalidationBatch(const InvalidationBatch& value) { SetInvalidationBatch(value); return *this;}
93 inline Invalidation& WithInvalidationBatch(InvalidationBatch&& value) { SetInvalidationBatch(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_id;
98 bool m_idHasBeenSet = false;
99
100 Aws::String m_status;
101 bool m_statusHasBeenSet = false;
102
103 Aws::Utils::DateTime m_createTime;
104 bool m_createTimeHasBeenSet = false;
105
106 InvalidationBatch m_invalidationBatch;
107 bool m_invalidationBatchHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CloudFront
112} // namespace Aws
const InvalidationBatch & GetInvalidationBatch() const
Invalidation & WithStatus(Aws::String &&value)
AWS_CLOUDFRONT_API Invalidation(const Aws::Utils::Xml::XmlNode &xmlNode)
Invalidation & WithInvalidationBatch(InvalidationBatch &&value)
const Aws::String & GetId() const
Invalidation & WithCreateTime(Aws::Utils::DateTime &&value)
void SetId(Aws::String &&value)
void SetCreateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetStatus() const
void SetStatus(Aws::String &&value)
Invalidation & WithStatus(const Aws::String &value)
void SetInvalidationBatch(const InvalidationBatch &value)
AWS_CLOUDFRONT_API Invalidation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Invalidation & WithStatus(const char *value)
Invalidation & WithCreateTime(const Aws::Utils::DateTime &value)
void SetId(const char *value)
Invalidation & WithId(Aws::String &&value)
Invalidation & WithInvalidationBatch(const InvalidationBatch &value)
void SetStatus(const Aws::String &value)
void SetInvalidationBatch(InvalidationBatch &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetStatus(const char *value)
Invalidation & WithId(const char *value)
Invalidation & WithId(const Aws::String &value)
void SetId(const Aws::String &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String