AWS SDK for C++  1.8.152
AWS SDK for C++
CertificateInfo.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace DirectoryService
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
48 
52  inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
53 
57  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
58 
62  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
63 
67  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
68 
72  inline CertificateInfo& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
73 
77  inline CertificateInfo& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
78 
82  inline CertificateInfo& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
83 
84 
88  inline const Aws::String& GetCommonName() const{ return m_commonName; }
89 
93  inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
94 
98  inline void SetCommonName(const Aws::String& value) { m_commonNameHasBeenSet = true; m_commonName = value; }
99 
103  inline void SetCommonName(Aws::String&& value) { m_commonNameHasBeenSet = true; m_commonName = std::move(value); }
104 
108  inline void SetCommonName(const char* value) { m_commonNameHasBeenSet = true; m_commonName.assign(value); }
109 
113  inline CertificateInfo& WithCommonName(const Aws::String& value) { SetCommonName(value); return *this;}
114 
118  inline CertificateInfo& WithCommonName(Aws::String&& value) { SetCommonName(std::move(value)); return *this;}
119 
123  inline CertificateInfo& WithCommonName(const char* value) { SetCommonName(value); return *this;}
124 
125 
129  inline const CertificateState& GetState() const{ return m_state; }
130 
134  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
135 
139  inline void SetState(const CertificateState& value) { m_stateHasBeenSet = true; m_state = value; }
140 
144  inline void SetState(CertificateState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
145 
149  inline CertificateInfo& WithState(const CertificateState& value) { SetState(value); return *this;}
150 
154  inline CertificateInfo& WithState(CertificateState&& value) { SetState(std::move(value)); return *this;}
155 
156 
160  inline const Aws::Utils::DateTime& GetExpiryDateTime() const{ return m_expiryDateTime; }
161 
165  inline bool ExpiryDateTimeHasBeenSet() const { return m_expiryDateTimeHasBeenSet; }
166 
170  inline void SetExpiryDateTime(const Aws::Utils::DateTime& value) { m_expiryDateTimeHasBeenSet = true; m_expiryDateTime = value; }
171 
175  inline void SetExpiryDateTime(Aws::Utils::DateTime&& value) { m_expiryDateTimeHasBeenSet = true; m_expiryDateTime = std::move(value); }
176 
180  inline CertificateInfo& WithExpiryDateTime(const Aws::Utils::DateTime& value) { SetExpiryDateTime(value); return *this;}
181 
185  inline CertificateInfo& WithExpiryDateTime(Aws::Utils::DateTime&& value) { SetExpiryDateTime(std::move(value)); return *this;}
186 
187 
193  inline const CertificateType& GetType() const{ return m_type; }
194 
200  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
201 
207  inline void SetType(const CertificateType& value) { m_typeHasBeenSet = true; m_type = value; }
208 
214  inline void SetType(CertificateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
215 
221  inline CertificateInfo& WithType(const CertificateType& value) { SetType(value); return *this;}
222 
228  inline CertificateInfo& WithType(CertificateType&& value) { SetType(std::move(value)); return *this;}
229 
230  private:
231 
232  Aws::String m_certificateId;
233  bool m_certificateIdHasBeenSet;
234 
235  Aws::String m_commonName;
236  bool m_commonNameHasBeenSet;
237 
238  CertificateState m_state;
239  bool m_stateHasBeenSet;
240 
241  Aws::Utils::DateTime m_expiryDateTime;
242  bool m_expiryDateTimeHasBeenSet;
243 
244  CertificateType m_type;
245  bool m_typeHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace DirectoryService
250 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::CertificateInfo::SetExpiryDateTime
void SetExpiryDateTime(const Aws::Utils::DateTime &value)
Definition: CertificateInfo.h:170
Aws::DirectoryService::Model::CertificateInfo::SetCertificateId
void SetCertificateId(const char *value)
Definition: CertificateInfo.h:67
Aws::DirectoryService::Model::CertificateInfo::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: CertificateInfo.h:52
Aws::DirectoryService::Model::CertificateInfo::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: CertificateInfo.h:62
Aws::DirectoryService::Model::CertificateType
CertificateType
Definition: CertificateType.h:17
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::CertificateInfo::SetCommonName
void SetCommonName(Aws::String &&value)
Definition: CertificateInfo.h:103
Aws::DirectoryService::Model::CertificateInfo::WithState
CertificateInfo & WithState(const CertificateState &value)
Definition: CertificateInfo.h:149
Aws::DirectoryService::Model::CertificateInfo::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: CertificateInfo.h:57
Aws::DirectoryService::Model::CertificateInfo::WithCertificateId
CertificateInfo & WithCertificateId(const Aws::String &value)
Definition: CertificateInfo.h:72
Aws::DirectoryService::Model::CertificateInfo::WithCertificateId
CertificateInfo & WithCertificateId(const char *value)
Definition: CertificateInfo.h:82
Aws::DirectoryService::Model::CertificateInfo::WithCertificateId
CertificateInfo & WithCertificateId(Aws::String &&value)
Definition: CertificateInfo.h:77
DateTime.h
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CertificateInfo::ExpiryDateTimeHasBeenSet
bool ExpiryDateTimeHasBeenSet() const
Definition: CertificateInfo.h:165
CertificateType.h
CertificateState.h
Aws::DirectoryService::Model::CertificateInfo::SetCommonName
void SetCommonName(const Aws::String &value)
Definition: CertificateInfo.h:98
Aws::DirectoryService::Model::CertificateInfo
Definition: CertificateInfo.h:36
Aws::DirectoryService::Model::CertificateInfo::StateHasBeenSet
bool StateHasBeenSet() const
Definition: CertificateInfo.h:134
Aws::DirectoryService::Model::CertificateInfo::operator=
CertificateInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::CertificateInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::CertificateInfo::WithType
CertificateInfo & WithType(CertificateType &&value)
Definition: CertificateInfo.h:228
Aws::DirectoryService::Model::CertificateInfo::WithExpiryDateTime
CertificateInfo & WithExpiryDateTime(Aws::Utils::DateTime &&value)
Definition: CertificateInfo.h:185
Aws::DirectoryService::Model::CertificateInfo::SetType
void SetType(const CertificateType &value)
Definition: CertificateInfo.h:207
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DirectoryService::Model::CertificateInfo::SetType
void SetType(CertificateType &&value)
Definition: CertificateInfo.h:214
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::CertificateState
CertificateState
Definition: CertificateState.h:17
Aws::DirectoryService::Model::CertificateInfo::SetState
void SetState(CertificateState &&value)
Definition: CertificateInfo.h:144
Aws::DirectoryService::Model::CertificateInfo::GetCommonName
const Aws::String & GetCommonName() const
Definition: CertificateInfo.h:88
Aws::DirectoryService::Model::CertificateInfo::CertificateInfo
CertificateInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::CertificateInfo::WithCommonName
CertificateInfo & WithCommonName(const Aws::String &value)
Definition: CertificateInfo.h:113
Aws::DirectoryService::Model::CertificateInfo::CertificateInfo
CertificateInfo()
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::CertificateInfo::WithType
CertificateInfo & WithType(const CertificateType &value)
Definition: CertificateInfo.h:221
Aws::DirectoryService::Model::CertificateInfo::SetState
void SetState(const CertificateState &value)
Definition: CertificateInfo.h:139
Aws::DirectoryService::Model::CertificateInfo::WithCommonName
CertificateInfo & WithCommonName(const char *value)
Definition: CertificateInfo.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::CertificateInfo::GetState
const CertificateState & GetState() const
Definition: CertificateInfo.h:129
Aws::DirectoryService::Model::CertificateInfo::SetCommonName
void SetCommonName(const char *value)
Definition: CertificateInfo.h:108
Aws::DirectoryService::Model::CertificateInfo::WithExpiryDateTime
CertificateInfo & WithExpiryDateTime(const Aws::Utils::DateTime &value)
Definition: CertificateInfo.h:180
Aws::DirectoryService::Model::CertificateInfo::WithCommonName
CertificateInfo & WithCommonName(Aws::String &&value)
Definition: CertificateInfo.h:118
Aws::DirectoryService::Model::CertificateInfo::GetExpiryDateTime
const Aws::Utils::DateTime & GetExpiryDateTime() const
Definition: CertificateInfo.h:160
Aws::DirectoryService::Model::CertificateInfo::WithState
CertificateInfo & WithState(CertificateState &&value)
Definition: CertificateInfo.h:154
Aws::DirectoryService::Model::CertificateInfo::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: CertificateInfo.h:47
Aws::DirectoryService::Model::CertificateInfo::SetExpiryDateTime
void SetExpiryDateTime(Aws::Utils::DateTime &&value)
Definition: CertificateInfo.h:175
Aws::DirectoryService::Model::CertificateInfo::CommonNameHasBeenSet
bool CommonNameHasBeenSet() const
Definition: CertificateInfo.h:93
Aws::DirectoryService::Model::CertificateInfo::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CertificateInfo.h:200
Aws::DirectoryService::Model::CertificateInfo::GetType
const CertificateType & GetType() const
Definition: CertificateInfo.h:193