AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Certificate.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace DocDB
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DOCDB_API Certificate() = default;
37 AWS_DOCDB_API Certificate(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_DOCDB_API Certificate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetCertificateIdentifier() const { return m_certificateIdentifier; }
50 inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; }
51 template<typename CertificateIdentifierT = Aws::String>
52 void SetCertificateIdentifier(CertificateIdentifierT&& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = std::forward<CertificateIdentifierT>(value); }
53 template<typename CertificateIdentifierT = Aws::String>
54 Certificate& WithCertificateIdentifier(CertificateIdentifierT&& value) { SetCertificateIdentifier(std::forward<CertificateIdentifierT>(value)); return *this;}
56
58
61 inline const Aws::String& GetCertificateType() const { return m_certificateType; }
62 inline bool CertificateTypeHasBeenSet() const { return m_certificateTypeHasBeenSet; }
63 template<typename CertificateTypeT = Aws::String>
64 void SetCertificateType(CertificateTypeT&& value) { m_certificateTypeHasBeenSet = true; m_certificateType = std::forward<CertificateTypeT>(value); }
65 template<typename CertificateTypeT = Aws::String>
66 Certificate& WithCertificateType(CertificateTypeT&& value) { SetCertificateType(std::forward<CertificateTypeT>(value)); return *this;}
68
70
73 inline const Aws::String& GetThumbprint() const { return m_thumbprint; }
74 inline bool ThumbprintHasBeenSet() const { return m_thumbprintHasBeenSet; }
75 template<typename ThumbprintT = Aws::String>
76 void SetThumbprint(ThumbprintT&& value) { m_thumbprintHasBeenSet = true; m_thumbprint = std::forward<ThumbprintT>(value); }
77 template<typename ThumbprintT = Aws::String>
78 Certificate& WithThumbprint(ThumbprintT&& value) { SetThumbprint(std::forward<ThumbprintT>(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetValidFrom() const { return m_validFrom; }
87 inline bool ValidFromHasBeenSet() const { return m_validFromHasBeenSet; }
88 template<typename ValidFromT = Aws::Utils::DateTime>
89 void SetValidFrom(ValidFromT&& value) { m_validFromHasBeenSet = true; m_validFrom = std::forward<ValidFromT>(value); }
90 template<typename ValidFromT = Aws::Utils::DateTime>
91 Certificate& WithValidFrom(ValidFromT&& value) { SetValidFrom(std::forward<ValidFromT>(value)); return *this;}
93
95
99 inline const Aws::Utils::DateTime& GetValidTill() const { return m_validTill; }
100 inline bool ValidTillHasBeenSet() const { return m_validTillHasBeenSet; }
101 template<typename ValidTillT = Aws::Utils::DateTime>
102 void SetValidTill(ValidTillT&& value) { m_validTillHasBeenSet = true; m_validTill = std::forward<ValidTillT>(value); }
103 template<typename ValidTillT = Aws::Utils::DateTime>
104 Certificate& WithValidTill(ValidTillT&& value) { SetValidTill(std::forward<ValidTillT>(value)); return *this;}
106
108
112 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
113 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
114 template<typename CertificateArnT = Aws::String>
115 void SetCertificateArn(CertificateArnT&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::forward<CertificateArnT>(value); }
116 template<typename CertificateArnT = Aws::String>
117 Certificate& WithCertificateArn(CertificateArnT&& value) { SetCertificateArn(std::forward<CertificateArnT>(value)); return *this;}
119 private:
120
121 Aws::String m_certificateIdentifier;
122 bool m_certificateIdentifierHasBeenSet = false;
123
124 Aws::String m_certificateType;
125 bool m_certificateTypeHasBeenSet = false;
126
127 Aws::String m_thumbprint;
128 bool m_thumbprintHasBeenSet = false;
129
130 Aws::Utils::DateTime m_validFrom{};
131 bool m_validFromHasBeenSet = false;
132
133 Aws::Utils::DateTime m_validTill{};
134 bool m_validTillHasBeenSet = false;
135
136 Aws::String m_certificateArn;
137 bool m_certificateArnHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace DocDB
142} // namespace Aws
const Aws::String & GetThumbprint() const
Definition Certificate.h:73
void SetCertificateArn(CertificateArnT &&value)
void SetValidTill(ValidTillT &&value)
Certificate & WithThumbprint(ThumbprintT &&value)
Definition Certificate.h:78
void SetCertificateIdentifier(CertificateIdentifierT &&value)
Definition Certificate.h:52
AWS_DOCDB_API Certificate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Certificate & WithValidFrom(ValidFromT &&value)
Definition Certificate.h:91
Certificate & WithCertificateArn(CertificateArnT &&value)
Certificate & WithCertificateType(CertificateTypeT &&value)
Definition Certificate.h:66
const Aws::String & GetCertificateArn() const
const Aws::Utils::DateTime & GetValidTill() const
Definition Certificate.h:99
AWS_DOCDB_API Certificate(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetValidFrom() const
Definition Certificate.h:86
Certificate & WithValidTill(ValidTillT &&value)
const Aws::String & GetCertificateIdentifier() const
Definition Certificate.h:49
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetValidFrom(ValidFromT &&value)
Definition Certificate.h:89
bool CertificateIdentifierHasBeenSet() const
Definition Certificate.h:50
void SetThumbprint(ThumbprintT &&value)
Definition Certificate.h:76
const Aws::String & GetCertificateType() const
Definition Certificate.h:61
void SetCertificateType(CertificateTypeT &&value)
Definition Certificate.h:64
bool CertificateTypeHasBeenSet() const
Definition Certificate.h:62
Certificate & WithCertificateIdentifier(CertificateIdentifierT &&value)
Definition Certificate.h:54
AWS_DOCDB_API Certificate()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream