AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportCertificateRequest.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/ACMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/acm/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ACM
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ACM_API ImportCertificateRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ImportCertificate"; }
34
35 AWS_ACM_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
48 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
49 template<typename CertificateArnT = Aws::String>
50 void SetCertificateArn(CertificateArnT&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::forward<CertificateArnT>(value); }
51 template<typename CertificateArnT = Aws::String>
52 ImportCertificateRequest& WithCertificateArn(CertificateArnT&& value) { SetCertificateArn(std::forward<CertificateArnT>(value)); return *this;}
54
56
59 inline const Aws::Utils::ByteBuffer& GetCertificate() const { return m_certificate; }
60 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
61 template<typename CertificateT = Aws::Utils::ByteBuffer>
62 void SetCertificate(CertificateT&& value) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
63 template<typename CertificateT = Aws::Utils::ByteBuffer>
64 ImportCertificateRequest& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
66
68
71 inline const Aws::Utils::CryptoBuffer& GetPrivateKey() const { return m_privateKey; }
72 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
73 template<typename PrivateKeyT = Aws::Utils::CryptoBuffer>
74 void SetPrivateKey(PrivateKeyT&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::forward<PrivateKeyT>(value); }
75 template<typename PrivateKeyT = Aws::Utils::CryptoBuffer>
76 ImportCertificateRequest& WithPrivateKey(PrivateKeyT&& value) { SetPrivateKey(std::forward<PrivateKeyT>(value)); return *this;}
78
80
83 inline const Aws::Utils::ByteBuffer& GetCertificateChain() const { return m_certificateChain; }
84 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
85 template<typename CertificateChainT = Aws::Utils::ByteBuffer>
86 void SetCertificateChain(CertificateChainT&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::forward<CertificateChainT>(value); }
87 template<typename CertificateChainT = Aws::Utils::ByteBuffer>
88 ImportCertificateRequest& WithCertificateChain(CertificateChainT&& value) { SetCertificateChain(std::forward<CertificateChainT>(value)); return *this;}
90
92
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template<typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
100 template<typename TagsT = Aws::Vector<Tag>>
101 ImportCertificateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
102 template<typename TagsT = Tag>
103 ImportCertificateRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
105 private:
106
107 Aws::String m_certificateArn;
108 bool m_certificateArnHasBeenSet = false;
109
110 Aws::Utils::ByteBuffer m_certificate{};
111 bool m_certificateHasBeenSet = false;
112
113 Aws::Utils::CryptoBuffer m_privateKey{};
114 bool m_privateKeyHasBeenSet = false;
115
116 Aws::Utils::ByteBuffer m_certificateChain{};
117 bool m_certificateChainHasBeenSet = false;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ACM
125} // namespace Aws
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportCertificateRequest & WithCertificate(CertificateT &&value)
ImportCertificateRequest & AddTags(TagsT &&value)
ImportCertificateRequest & WithTags(TagsT &&value)
ImportCertificateRequest & WithCertificateArn(CertificateArnT &&value)
const Aws::Utils::ByteBuffer & GetCertificateChain() const
ImportCertificateRequest & WithCertificateChain(CertificateChainT &&value)
AWS_ACM_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::ByteBuffer & GetCertificate() const
const Aws::Utils::CryptoBuffer & GetPrivateKey() const
void SetCertificateChain(CertificateChainT &&value)
AWS_ACM_API ImportCertificateRequest()=default
ImportCertificateRequest & WithPrivateKey(PrivateKeyT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector