AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServerCertificate.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/iam/model/ServerCertificateMetadata.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iam/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace IAM
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_IAM_API ServerCertificate();
40 AWS_IAM_API ServerCertificate(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const ServerCertificateMetadata& GetServerCertificateMetadata() const{ return m_serverCertificateMetadata; }
53 inline bool ServerCertificateMetadataHasBeenSet() const { return m_serverCertificateMetadataHasBeenSet; }
54 inline void SetServerCertificateMetadata(const ServerCertificateMetadata& value) { m_serverCertificateMetadataHasBeenSet = true; m_serverCertificateMetadata = value; }
55 inline void SetServerCertificateMetadata(ServerCertificateMetadata&& value) { m_serverCertificateMetadataHasBeenSet = true; m_serverCertificateMetadata = std::move(value); }
59
61
64 inline const Aws::String& GetCertificateBody() const{ return m_certificateBody; }
65 inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; }
66 inline void SetCertificateBody(const Aws::String& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = value; }
67 inline void SetCertificateBody(Aws::String&& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = std::move(value); }
68 inline void SetCertificateBody(const char* value) { m_certificateBodyHasBeenSet = true; m_certificateBody.assign(value); }
69 inline ServerCertificate& WithCertificateBody(const Aws::String& value) { SetCertificateBody(value); return *this;}
70 inline ServerCertificate& WithCertificateBody(Aws::String&& value) { SetCertificateBody(std::move(value)); return *this;}
71 inline ServerCertificate& WithCertificateBody(const char* value) { SetCertificateBody(value); return *this;}
73
75
78 inline const Aws::String& GetCertificateChain() const{ return m_certificateChain; }
79 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
80 inline void SetCertificateChain(const Aws::String& value) { m_certificateChainHasBeenSet = true; m_certificateChain = value; }
81 inline void SetCertificateChain(Aws::String&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::move(value); }
82 inline void SetCertificateChain(const char* value) { m_certificateChainHasBeenSet = true; m_certificateChain.assign(value); }
83 inline ServerCertificate& WithCertificateChain(const Aws::String& value) { SetCertificateChain(value); return *this;}
84 inline ServerCertificate& WithCertificateChain(Aws::String&& value) { SetCertificateChain(std::move(value)); return *this;}
85 inline ServerCertificate& WithCertificateChain(const char* value) { SetCertificateChain(value); return *this;}
87
89
95 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 inline ServerCertificate& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
100 inline ServerCertificate& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
101 inline ServerCertificate& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
102 inline ServerCertificate& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
104 private:
105
106 ServerCertificateMetadata m_serverCertificateMetadata;
107 bool m_serverCertificateMetadataHasBeenSet = false;
108
109 Aws::String m_certificateBody;
110 bool m_certificateBodyHasBeenSet = false;
111
112 Aws::String m_certificateChain;
113 bool m_certificateChainHasBeenSet = false;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace IAM
121} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCertificateChain(const Aws::String &value)
AWS_IAM_API ServerCertificate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetServerCertificateMetadata(const ServerCertificateMetadata &value)
void SetCertificateBody(const char *value)
const Aws::Vector< Tag > & GetTags() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ServerCertificate & WithCertificateChain(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const ServerCertificateMetadata & GetServerCertificateMetadata() const
void SetServerCertificateMetadata(ServerCertificateMetadata &&value)
ServerCertificate & AddTags(const Tag &value)
ServerCertificate & WithCertificateChain(Aws::String &&value)
ServerCertificate & WithCertificateChain(const char *value)
ServerCertificate & WithServerCertificateMetadata(const ServerCertificateMetadata &value)
void SetCertificateChain(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
ServerCertificate & AddTags(Tag &&value)
ServerCertificate & WithTags(Aws::Vector< Tag > &&value)
void SetCertificateBody(Aws::String &&value)
void SetCertificateBody(const Aws::String &value)
ServerCertificate & WithTags(const Aws::Vector< Tag > &value)
AWS_IAM_API ServerCertificate(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerCertificate & WithCertificateBody(const Aws::String &value)
ServerCertificate & WithCertificateBody(const char *value)
ServerCertificate & WithCertificateBody(Aws::String &&value)
void SetCertificateChain(Aws::String &&value)
ServerCertificate & WithServerCertificateMetadata(ServerCertificateMetadata &&value)
const Aws::String & GetCertificateBody() const
const Aws::String & GetCertificateChain() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream