AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
Certificate.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkSpacesWeb {
22namespace Model {
23
30 public:
31 AWS_WORKSPACESWEB_API Certificate() = default;
32 AWS_WORKSPACESWEB_API Certificate(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WORKSPACESWEB_API Certificate& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetThumbprint() const { return m_thumbprint; }
41 inline bool ThumbprintHasBeenSet() const { return m_thumbprintHasBeenSet; }
42 template <typename ThumbprintT = Aws::String>
43 void SetThumbprint(ThumbprintT&& value) {
44 m_thumbprintHasBeenSet = true;
45 m_thumbprint = std::forward<ThumbprintT>(value);
46 }
47 template <typename ThumbprintT = Aws::String>
48 Certificate& WithThumbprint(ThumbprintT&& value) {
49 SetThumbprint(std::forward<ThumbprintT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSubject() const { return m_subject; }
59 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
60 template <typename SubjectT = Aws::String>
61 void SetSubject(SubjectT&& value) {
62 m_subjectHasBeenSet = true;
63 m_subject = std::forward<SubjectT>(value);
64 }
65 template <typename SubjectT = Aws::String>
66 Certificate& WithSubject(SubjectT&& value) {
67 SetSubject(std::forward<SubjectT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetIssuer() const { return m_issuer; }
77 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
78 template <typename IssuerT = Aws::String>
79 void SetIssuer(IssuerT&& value) {
80 m_issuerHasBeenSet = true;
81 m_issuer = std::forward<IssuerT>(value);
82 }
83 template <typename IssuerT = Aws::String>
84 Certificate& WithIssuer(IssuerT&& value) {
85 SetIssuer(std::forward<IssuerT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetNotValidBefore() const { return m_notValidBefore; }
95 inline bool NotValidBeforeHasBeenSet() const { return m_notValidBeforeHasBeenSet; }
96 template <typename NotValidBeforeT = Aws::Utils::DateTime>
97 void SetNotValidBefore(NotValidBeforeT&& value) {
98 m_notValidBeforeHasBeenSet = true;
99 m_notValidBefore = std::forward<NotValidBeforeT>(value);
100 }
101 template <typename NotValidBeforeT = Aws::Utils::DateTime>
102 Certificate& WithNotValidBefore(NotValidBeforeT&& value) {
103 SetNotValidBefore(std::forward<NotValidBeforeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetNotValidAfter() const { return m_notValidAfter; }
113 inline bool NotValidAfterHasBeenSet() const { return m_notValidAfterHasBeenSet; }
114 template <typename NotValidAfterT = Aws::Utils::DateTime>
115 void SetNotValidAfter(NotValidAfterT&& value) {
116 m_notValidAfterHasBeenSet = true;
117 m_notValidAfter = std::forward<NotValidAfterT>(value);
118 }
119 template <typename NotValidAfterT = Aws::Utils::DateTime>
120 Certificate& WithNotValidAfter(NotValidAfterT&& value) {
121 SetNotValidAfter(std::forward<NotValidAfterT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::ByteBuffer& GetBody() const { return m_body; }
131 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
132 template <typename BodyT = Aws::Utils::ByteBuffer>
133 void SetBody(BodyT&& value) {
134 m_bodyHasBeenSet = true;
135 m_body = std::forward<BodyT>(value);
136 }
137 template <typename BodyT = Aws::Utils::ByteBuffer>
138 Certificate& WithBody(BodyT&& value) {
139 SetBody(std::forward<BodyT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_thumbprint;
145
146 Aws::String m_subject;
147
148 Aws::String m_issuer;
149
150 Aws::Utils::DateTime m_notValidBefore{};
151
152 Aws::Utils::DateTime m_notValidAfter{};
153
154 Aws::Utils::ByteBuffer m_body{};
155 bool m_thumbprintHasBeenSet = false;
156 bool m_subjectHasBeenSet = false;
157 bool m_issuerHasBeenSet = false;
158 bool m_notValidBeforeHasBeenSet = false;
159 bool m_notValidAfterHasBeenSet = false;
160 bool m_bodyHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace WorkSpacesWeb
165} // namespace Aws
const Aws::String & GetIssuer() const
Definition Certificate.h:76
Certificate & WithNotValidBefore(NotValidBeforeT &&value)
const Aws::Utils::DateTime & GetNotValidBefore() const
Definition Certificate.h:94
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::ByteBuffer & GetBody() const
Certificate & WithNotValidAfter(NotValidAfterT &&value)
const Aws::Utils::DateTime & GetNotValidAfter() const
const Aws::String & GetSubject() const
Definition Certificate.h:58
Certificate & WithIssuer(IssuerT &&value)
Definition Certificate.h:84
Certificate & WithBody(BodyT &&value)
void SetSubject(SubjectT &&value)
Definition Certificate.h:61
Certificate & WithSubject(SubjectT &&value)
Definition Certificate.h:66
AWS_WORKSPACESWEB_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNotValidBefore(NotValidBeforeT &&value)
Definition Certificate.h:97
Certificate & WithThumbprint(ThumbprintT &&value)
Definition Certificate.h:48
const Aws::String & GetThumbprint() const
Definition Certificate.h:40
AWS_WORKSPACESWEB_API Certificate()=default
void SetThumbprint(ThumbprintT &&value)
Definition Certificate.h:43
void SetNotValidAfter(NotValidAfterT &&value)
AWS_WORKSPACESWEB_API Certificate(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue