AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
TrustStore.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/TrustStoreStatus.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 TrustStore() = default;
31 AWS_CLOUDFRONT_API TrustStore(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API TrustStore& 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 TrustStore& 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 TrustStore& WithArn(ArnT&& value) {
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 TrustStore& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline TrustStoreStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(TrustStoreStatus value) {
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105
107
110 inline int GetNumberOfCaCertificates() const { return m_numberOfCaCertificates; }
111 inline bool NumberOfCaCertificatesHasBeenSet() const { return m_numberOfCaCertificatesHasBeenSet; }
112 inline void SetNumberOfCaCertificates(int value) {
113 m_numberOfCaCertificatesHasBeenSet = true;
114 m_numberOfCaCertificates = value;
115 }
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
127 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
128 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
129 void SetLastModifiedTime(LastModifiedTimeT&& value) {
130 m_lastModifiedTimeHasBeenSet = true;
131 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
132 }
133 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
134 TrustStore& WithLastModifiedTime(LastModifiedTimeT&& value) {
135 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetReason() const { return m_reason; }
145 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
146 template <typename ReasonT = Aws::String>
147 void SetReason(ReasonT&& value) {
148 m_reasonHasBeenSet = true;
149 m_reason = std::forward<ReasonT>(value);
150 }
151 template <typename ReasonT = Aws::String>
152 TrustStore& WithReason(ReasonT&& value) {
153 SetReason(std::forward<ReasonT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_id;
159
160 Aws::String m_arn;
161
162 Aws::String m_name;
163
165
166 int m_numberOfCaCertificates{0};
167
168 Aws::Utils::DateTime m_lastModifiedTime{};
169
170 Aws::String m_reason;
171 bool m_idHasBeenSet = false;
172 bool m_arnHasBeenSet = false;
173 bool m_nameHasBeenSet = false;
174 bool m_statusHasBeenSet = false;
175 bool m_numberOfCaCertificatesHasBeenSet = false;
176 bool m_lastModifiedTimeHasBeenSet = false;
177 bool m_reasonHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace CloudFront
182} // namespace Aws
bool NumberOfCaCertificatesHasBeenSet() const
Definition TrustStore.h:111
void SetStatus(TrustStoreStatus value)
Definition TrustStore.h:96
TrustStore & WithNumberOfCaCertificates(int value)
Definition TrustStore.h:116
TrustStore & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition TrustStore.h:134
TrustStoreStatus GetStatus() const
Definition TrustStore.h:94
TrustStore & WithStatus(TrustStoreStatus value)
Definition TrustStore.h:100
const Aws::String & GetReason() const
Definition TrustStore.h:144
TrustStore & WithId(IdT &&value)
Definition TrustStore.h:48
void SetReason(ReasonT &&value)
Definition TrustStore.h:147
const Aws::String & GetId() const
Definition TrustStore.h:40
void SetNumberOfCaCertificates(int value)
Definition TrustStore.h:112
AWS_CLOUDFRONT_API TrustStore()=default
AWS_CLOUDFRONT_API TrustStore & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrustStore & WithName(NameT &&value)
Definition TrustStore.h:84
const Aws::String & GetName() const
Definition TrustStore.h:76
const Aws::String & GetArn() const
Definition TrustStore.h:58
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition TrustStore.h:126
AWS_CLOUDFRONT_API TrustStore(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TrustStore & WithArn(ArnT &&value)
Definition TrustStore.h:66
TrustStore & WithReason(ReasonT &&value)
Definition TrustStore.h:152
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition TrustStore.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String