AWS SDK for C++  0.14.3
AWS SDK for C++
Certificate.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DatabaseMigrationService
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  Certificate();
42  Certificate(const Aws::Utils::Json::JsonValue& jsonValue);
43  Certificate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetCertificateIdentifier() const{ return m_certificateIdentifier; }
51 
56  inline void SetCertificateIdentifier(const Aws::String& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = value; }
57 
62  inline void SetCertificateIdentifier(Aws::String&& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = value; }
63 
68  inline void SetCertificateIdentifier(const char* value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier.assign(value); }
69 
74  inline Certificate& WithCertificateIdentifier(const Aws::String& value) { SetCertificateIdentifier(value); return *this;}
75 
80  inline Certificate& WithCertificateIdentifier(Aws::String&& value) { SetCertificateIdentifier(value); return *this;}
81 
86  inline Certificate& WithCertificateIdentifier(const char* value) { SetCertificateIdentifier(value); return *this;}
87 
91  inline const Aws::Utils::DateTime& GetCertificateCreationDate() const{ return m_certificateCreationDate; }
92 
96  inline void SetCertificateCreationDate(const Aws::Utils::DateTime& value) { m_certificateCreationDateHasBeenSet = true; m_certificateCreationDate = value; }
97 
101  inline void SetCertificateCreationDate(Aws::Utils::DateTime&& value) { m_certificateCreationDateHasBeenSet = true; m_certificateCreationDate = value; }
102 
106  inline Certificate& WithCertificateCreationDate(const Aws::Utils::DateTime& value) { SetCertificateCreationDate(value); return *this;}
107 
111  inline Certificate& WithCertificateCreationDate(Aws::Utils::DateTime&& value) { SetCertificateCreationDate(value); return *this;}
112 
116  inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
117 
121  inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
122 
126  inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
127 
131  inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
132 
136  inline Certificate& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
137 
141  inline Certificate& WithCertificatePem(Aws::String&& value) { SetCertificatePem(value); return *this;}
142 
146  inline Certificate& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
147 
151  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
152 
156  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
157 
161  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
162 
166  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
167 
171  inline Certificate& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
172 
176  inline Certificate& WithCertificateArn(Aws::String&& value) { SetCertificateArn(value); return *this;}
177 
181  inline Certificate& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
182 
186  inline const Aws::String& GetCertificateOwner() const{ return m_certificateOwner; }
187 
191  inline void SetCertificateOwner(const Aws::String& value) { m_certificateOwnerHasBeenSet = true; m_certificateOwner = value; }
192 
196  inline void SetCertificateOwner(Aws::String&& value) { m_certificateOwnerHasBeenSet = true; m_certificateOwner = value; }
197 
201  inline void SetCertificateOwner(const char* value) { m_certificateOwnerHasBeenSet = true; m_certificateOwner.assign(value); }
202 
206  inline Certificate& WithCertificateOwner(const Aws::String& value) { SetCertificateOwner(value); return *this;}
207 
211  inline Certificate& WithCertificateOwner(Aws::String&& value) { SetCertificateOwner(value); return *this;}
212 
216  inline Certificate& WithCertificateOwner(const char* value) { SetCertificateOwner(value); return *this;}
217 
221  inline const Aws::Utils::DateTime& GetValidFromDate() const{ return m_validFromDate; }
222 
226  inline void SetValidFromDate(const Aws::Utils::DateTime& value) { m_validFromDateHasBeenSet = true; m_validFromDate = value; }
227 
231  inline void SetValidFromDate(Aws::Utils::DateTime&& value) { m_validFromDateHasBeenSet = true; m_validFromDate = value; }
232 
236  inline Certificate& WithValidFromDate(const Aws::Utils::DateTime& value) { SetValidFromDate(value); return *this;}
237 
241  inline Certificate& WithValidFromDate(Aws::Utils::DateTime&& value) { SetValidFromDate(value); return *this;}
242 
246  inline const Aws::Utils::DateTime& GetValidToDate() const{ return m_validToDate; }
247 
251  inline void SetValidToDate(const Aws::Utils::DateTime& value) { m_validToDateHasBeenSet = true; m_validToDate = value; }
252 
256  inline void SetValidToDate(Aws::Utils::DateTime&& value) { m_validToDateHasBeenSet = true; m_validToDate = value; }
257 
261  inline Certificate& WithValidToDate(const Aws::Utils::DateTime& value) { SetValidToDate(value); return *this;}
262 
266  inline Certificate& WithValidToDate(Aws::Utils::DateTime&& value) { SetValidToDate(value); return *this;}
267 
271  inline const Aws::String& GetSigningAlgorithm() const{ return m_signingAlgorithm; }
272 
276  inline void SetSigningAlgorithm(const Aws::String& value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = value; }
277 
281  inline void SetSigningAlgorithm(Aws::String&& value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = value; }
282 
286  inline void SetSigningAlgorithm(const char* value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm.assign(value); }
287 
291  inline Certificate& WithSigningAlgorithm(const Aws::String& value) { SetSigningAlgorithm(value); return *this;}
292 
296  inline Certificate& WithSigningAlgorithm(Aws::String&& value) { SetSigningAlgorithm(value); return *this;}
297 
301  inline Certificate& WithSigningAlgorithm(const char* value) { SetSigningAlgorithm(value); return *this;}
302 
306  inline int GetKeyLength() const{ return m_keyLength; }
307 
311  inline void SetKeyLength(int value) { m_keyLengthHasBeenSet = true; m_keyLength = value; }
312 
316  inline Certificate& WithKeyLength(int value) { SetKeyLength(value); return *this;}
317 
318  private:
319  Aws::String m_certificateIdentifier;
320  bool m_certificateIdentifierHasBeenSet;
321  Aws::Utils::DateTime m_certificateCreationDate;
322  bool m_certificateCreationDateHasBeenSet;
323  Aws::String m_certificatePem;
324  bool m_certificatePemHasBeenSet;
325  Aws::String m_certificateArn;
326  bool m_certificateArnHasBeenSet;
327  Aws::String m_certificateOwner;
328  bool m_certificateOwnerHasBeenSet;
329  Aws::Utils::DateTime m_validFromDate;
330  bool m_validFromDateHasBeenSet;
331  Aws::Utils::DateTime m_validToDate;
332  bool m_validToDateHasBeenSet;
333  Aws::String m_signingAlgorithm;
334  bool m_signingAlgorithmHasBeenSet;
335  int m_keyLength;
336  bool m_keyLengthHasBeenSet;
337  };
338 
339 } // namespace Model
340 } // namespace DatabaseMigrationService
341 } // namespace Aws
Certificate & WithCertificateArn(const char *value)
Definition: Certificate.h:181
Certificate & WithCertificateCreationDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:106
Certificate & WithCertificateOwner(Aws::String &&value)
Definition: Certificate.h:211
void SetCertificateIdentifier(Aws::String &&value)
Definition: Certificate.h:62
Certificate & WithCertificatePem(const Aws::String &value)
Definition: Certificate.h:136
Certificate & WithCertificateOwner(const char *value)
Definition: Certificate.h:216
const Aws::Utils::DateTime & GetCertificateCreationDate() const
Definition: Certificate.h:91
void SetCertificateOwner(const Aws::String &value)
Definition: Certificate.h:191
Certificate & WithValidToDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:261
const Aws::String & GetCertificatePem() const
Definition: Certificate.h:116
Certificate & WithCertificateCreationDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:111
Certificate & WithCertificateIdentifier(const char *value)
Definition: Certificate.h:86
void SetCertificateArn(const Aws::String &value)
Definition: Certificate.h:156
void SetCertificatePem(const Aws::String &value)
Definition: Certificate.h:121
#define AWS_DATABASEMIGRATIONSERVICE_API
Certificate & WithCertificateOwner(const Aws::String &value)
Definition: Certificate.h:206
Certificate & WithCertificateArn(const Aws::String &value)
Definition: Certificate.h:171
Certificate & WithCertificateIdentifier(const Aws::String &value)
Definition: Certificate.h:74
Certificate & WithValidToDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:266
Certificate & WithValidFromDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:241
void SetCertificateCreationDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:96
void SetCertificateIdentifier(const Aws::String &value)
Definition: Certificate.h:56
Certificate & WithSigningAlgorithm(Aws::String &&value)
Definition: Certificate.h:296
const Aws::Utils::DateTime & GetValidToDate() const
Definition: Certificate.h:246
void SetCertificateCreationDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:101
void SetValidFromDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:226
void SetValidToDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:256
void SetValidToDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:251
void SetValidFromDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:231
Certificate & WithCertificateArn(Aws::String &&value)
Definition: Certificate.h:176
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Certificate & WithValidFromDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:236
Certificate & WithSigningAlgorithm(const Aws::String &value)
Definition: Certificate.h:291
Certificate & WithCertificatePem(const char *value)
Definition: Certificate.h:146
const Aws::Utils::DateTime & GetValidFromDate() const
Definition: Certificate.h:221
void SetSigningAlgorithm(const Aws::String &value)
Definition: Certificate.h:276
const Aws::String & GetCertificateArn() const
Definition: Certificate.h:151
Certificate & WithCertificateIdentifier(Aws::String &&value)
Definition: Certificate.h:80
const Aws::String & GetCertificateIdentifier() const
Definition: Certificate.h:50
Certificate & WithSigningAlgorithm(const char *value)
Definition: Certificate.h:301
const Aws::String & GetCertificateOwner() const
Definition: Certificate.h:186
JSON (JavaScript Object Notation).
const Aws::String & GetSigningAlgorithm() const
Definition: Certificate.h:271
Certificate & WithCertificatePem(Aws::String &&value)
Definition: Certificate.h:141