AWS SDK for C++  0.12.9
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
16 #include <aws/rds/RDS_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace RDS
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Certificate();
42  Certificate(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Certificate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetCertificateIdentifier() const{ return m_certificateIdentifier; }
52 
56  inline void SetCertificateIdentifier(const Aws::String& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = value; }
57 
61  inline void SetCertificateIdentifier(Aws::String&& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = value; }
62 
66  inline void SetCertificateIdentifier(const char* value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier.assign(value); }
67 
71  inline Certificate& WithCertificateIdentifier(const Aws::String& value) { SetCertificateIdentifier(value); return *this;}
72 
76  inline Certificate& WithCertificateIdentifier(Aws::String&& value) { SetCertificateIdentifier(value); return *this;}
77 
81  inline Certificate& WithCertificateIdentifier(const char* value) { SetCertificateIdentifier(value); return *this;}
82 
86  inline const Aws::String& GetCertificateType() const{ return m_certificateType; }
87 
91  inline void SetCertificateType(const Aws::String& value) { m_certificateTypeHasBeenSet = true; m_certificateType = value; }
92 
96  inline void SetCertificateType(Aws::String&& value) { m_certificateTypeHasBeenSet = true; m_certificateType = value; }
97 
101  inline void SetCertificateType(const char* value) { m_certificateTypeHasBeenSet = true; m_certificateType.assign(value); }
102 
106  inline Certificate& WithCertificateType(const Aws::String& value) { SetCertificateType(value); return *this;}
107 
111  inline Certificate& WithCertificateType(Aws::String&& value) { SetCertificateType(value); return *this;}
112 
116  inline Certificate& WithCertificateType(const char* value) { SetCertificateType(value); return *this;}
117 
121  inline const Aws::String& GetThumbprint() const{ return m_thumbprint; }
122 
126  inline void SetThumbprint(const Aws::String& value) { m_thumbprintHasBeenSet = true; m_thumbprint = value; }
127 
131  inline void SetThumbprint(Aws::String&& value) { m_thumbprintHasBeenSet = true; m_thumbprint = value; }
132 
136  inline void SetThumbprint(const char* value) { m_thumbprintHasBeenSet = true; m_thumbprint.assign(value); }
137 
141  inline Certificate& WithThumbprint(const Aws::String& value) { SetThumbprint(value); return *this;}
142 
146  inline Certificate& WithThumbprint(Aws::String&& value) { SetThumbprint(value); return *this;}
147 
151  inline Certificate& WithThumbprint(const char* value) { SetThumbprint(value); return *this;}
152 
156  inline const Aws::Utils::DateTime& GetValidFrom() const{ return m_validFrom; }
157 
161  inline void SetValidFrom(const Aws::Utils::DateTime& value) { m_validFromHasBeenSet = true; m_validFrom = value; }
162 
166  inline void SetValidFrom(Aws::Utils::DateTime&& value) { m_validFromHasBeenSet = true; m_validFrom = value; }
167 
171  inline Certificate& WithValidFrom(const Aws::Utils::DateTime& value) { SetValidFrom(value); return *this;}
172 
176  inline Certificate& WithValidFrom(Aws::Utils::DateTime&& value) { SetValidFrom(value); return *this;}
177 
181  inline const Aws::Utils::DateTime& GetValidTill() const{ return m_validTill; }
182 
186  inline void SetValidTill(const Aws::Utils::DateTime& value) { m_validTillHasBeenSet = true; m_validTill = value; }
187 
191  inline void SetValidTill(Aws::Utils::DateTime&& value) { m_validTillHasBeenSet = true; m_validTill = value; }
192 
196  inline Certificate& WithValidTill(const Aws::Utils::DateTime& value) { SetValidTill(value); return *this;}
197 
201  inline Certificate& WithValidTill(Aws::Utils::DateTime&& value) { SetValidTill(value); return *this;}
202 
203  private:
204  Aws::String m_certificateIdentifier;
205  bool m_certificateIdentifierHasBeenSet;
206  Aws::String m_certificateType;
207  bool m_certificateTypeHasBeenSet;
208  Aws::String m_thumbprint;
209  bool m_thumbprintHasBeenSet;
210  Aws::Utils::DateTime m_validFrom;
211  bool m_validFromHasBeenSet;
212  Aws::Utils::DateTime m_validTill;
213  bool m_validTillHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace RDS
218 } // namespace Aws
Certificate & WithCertificateType(Aws::String &&value)
Definition: Certificate.h:111
const Aws::String & GetThumbprint() const
Definition: Certificate.h:121
const Aws::String & GetCertificateType() const
Definition: Certificate.h:86
Certificate & WithCertificateIdentifier(const Aws::String &value)
Definition: Certificate.h:71
void SetValidTill(const Aws::Utils::DateTime &value)
Definition: Certificate.h:186
Certificate & WithThumbprint(const char *value)
Definition: Certificate.h:151
Certificate & WithCertificateType(const Aws::String &value)
Definition: Certificate.h:106
Certificate & WithCertificateIdentifier(const char *value)
Definition: Certificate.h:81
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:34
Certificate & WithCertificateIdentifier(Aws::String &&value)
Definition: Certificate.h:76
void SetValidTill(Aws::Utils::DateTime &&value)
Definition: Certificate.h:191
Certificate & WithCertificateType(const char *value)
Definition: Certificate.h:116
void SetCertificateType(Aws::String &&value)
Definition: Certificate.h:96
const Aws::Utils::DateTime & GetValidFrom() const
Definition: Certificate.h:156
void SetCertificateIdentifier(const Aws::String &value)
Definition: Certificate.h:56
void SetCertificateType(const char *value)
Definition: Certificate.h:101
void SetCertificateIdentifier(Aws::String &&value)
Definition: Certificate.h:61
Certificate & WithThumbprint(const Aws::String &value)
Definition: Certificate.h:141
void SetThumbprint(const char *value)
Definition: Certificate.h:136
Certificate & WithThumbprint(Aws::String &&value)
Definition: Certificate.h:146
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetThumbprint(const Aws::String &value)
Definition: Certificate.h:126
void SetThumbprint(Aws::String &&value)
Definition: Certificate.h:131
void SetValidFrom(Aws::Utils::DateTime &&value)
Definition: Certificate.h:166
Certificate & WithValidTill(Aws::Utils::DateTime &&value)
Definition: Certificate.h:201
void SetCertificateType(const Aws::String &value)
Definition: Certificate.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetValidTill() const
Definition: Certificate.h:181
void SetCertificateIdentifier(const char *value)
Definition: Certificate.h:66
Certificate & WithValidFrom(Aws::Utils::DateTime &&value)
Definition: Certificate.h:176
const Aws::String & GetCertificateIdentifier() const
Definition: Certificate.h:51
void SetValidFrom(const Aws::Utils::DateTime &value)
Definition: Certificate.h:161
JSON (JavaScript Object Notation).
Certificate & WithValidFrom(const Aws::Utils::DateTime &value)
Definition: Certificate.h:171
Certificate & WithValidTill(const Aws::Utils::DateTime &value)
Definition: Certificate.h:196