AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
CreateAcmeEndpointRequest.h
1
6#pragma once
7#include <aws/acm/ACMRequest.h>
8#include <aws/acm/ACM_EXPORTS.h>
9#include <aws/acm/model/AcmeAuthorizationBehavior.h>
10#include <aws/acm/model/AcmeContact.h>
11#include <aws/acm/model/CertificateAuthority.h>
12#include <aws/acm/model/Tag.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ACM {
21namespace Model {
22
26 public:
27 AWS_ACM_API CreateAcmeEndpointRequest() = 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 "CreateAcmeEndpoint"; }
34
35 AWS_ACM_API Aws::String SerializePayload() const override;
36
38
42 AWS_ACM_API EndpointParameters GetEndpointContextParams() const override;
43
45
48 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
49 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
50 template <typename IdempotencyTokenT = Aws::String>
51 void SetIdempotencyToken(IdempotencyTokenT&& value) {
52 m_idempotencyTokenHasBeenSet = true;
53 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
54 }
55 template <typename IdempotencyTokenT = Aws::String>
56 CreateAcmeEndpointRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
57 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
58 return *this;
59 }
61
63
66 inline AcmeAuthorizationBehavior GetAuthorizationBehavior() const { return m_authorizationBehavior; }
67 inline bool AuthorizationBehaviorHasBeenSet() const { return m_authorizationBehaviorHasBeenSet; }
69 m_authorizationBehaviorHasBeenSet = true;
70 m_authorizationBehavior = value;
71 }
74 return *this;
75 }
77
79
83 inline AcmeContact GetContact() const { return m_contact; }
84 inline bool ContactHasBeenSet() const { return m_contactHasBeenSet; }
85 inline void SetContact(AcmeContact value) {
86 m_contactHasBeenSet = true;
87 m_contact = value;
88 }
90 SetContact(value);
91 return *this;
92 }
94
96
100 inline const CertificateAuthority& GetCertificateAuthority() const { return m_certificateAuthority; }
101 inline bool CertificateAuthorityHasBeenSet() const { return m_certificateAuthorityHasBeenSet; }
102 template <typename CertificateAuthorityT = CertificateAuthority>
103 void SetCertificateAuthority(CertificateAuthorityT&& value) {
104 m_certificateAuthorityHasBeenSet = true;
105 m_certificateAuthority = std::forward<CertificateAuthorityT>(value);
106 }
107 template <typename CertificateAuthorityT = CertificateAuthority>
108 CreateAcmeEndpointRequest& WithCertificateAuthority(CertificateAuthorityT&& value) {
109 SetCertificateAuthority(std::forward<CertificateAuthorityT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template <typename TagsT = Aws::Vector<Tag>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Vector<Tag>>
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsT = Tag>
132 m_tagsHasBeenSet = true;
133 m_tags.emplace_back(std::forward<TagsT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<Tag>& GetCertificateTags() const { return m_certificateTags; }
143 inline bool CertificateTagsHasBeenSet() const { return m_certificateTagsHasBeenSet; }
144 template <typename CertificateTagsT = Aws::Vector<Tag>>
145 void SetCertificateTags(CertificateTagsT&& value) {
146 m_certificateTagsHasBeenSet = true;
147 m_certificateTags = std::forward<CertificateTagsT>(value);
148 }
149 template <typename CertificateTagsT = Aws::Vector<Tag>>
151 SetCertificateTags(std::forward<CertificateTagsT>(value));
152 return *this;
153 }
154 template <typename CertificateTagsT = Tag>
156 m_certificateTagsHasBeenSet = true;
157 m_certificateTags.emplace_back(std::forward<CertificateTagsT>(value));
158 return *this;
159 }
161 private:
163
165
167
168 CertificateAuthority m_certificateAuthority;
169
170 Aws::Vector<Tag> m_tags;
171
172 Aws::Vector<Tag> m_certificateTags;
173 bool m_idempotencyTokenHasBeenSet = true;
174 bool m_authorizationBehaviorHasBeenSet = false;
175 bool m_contactHasBeenSet = false;
176 bool m_certificateAuthorityHasBeenSet = false;
177 bool m_tagsHasBeenSet = false;
178 bool m_certificateTagsHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace ACM
183} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
Definition ACMRequest.h:18
CreateAcmeEndpointRequest & WithContact(AcmeContact value)
AWS_ACM_API Aws::String SerializePayload() const override
void SetAuthorizationBehavior(AcmeAuthorizationBehavior value)
AcmeAuthorizationBehavior GetAuthorizationBehavior() const
void SetCertificateAuthority(CertificateAuthorityT &&value)
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAcmeEndpointRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
const Aws::Vector< Tag > & GetCertificateTags() const
const CertificateAuthority & GetCertificateAuthority() const
CreateAcmeEndpointRequest & AddCertificateTags(CertificateTagsT &&value)
CreateAcmeEndpointRequest & AddTags(TagsT &&value)
CreateAcmeEndpointRequest & WithTags(TagsT &&value)
void SetIdempotencyToken(IdempotencyTokenT &&value)
CreateAcmeEndpointRequest & WithAuthorizationBehavior(AcmeAuthorizationBehavior value)
AWS_ACM_API EndpointParameters GetEndpointContextParams() const override
CreateAcmeEndpointRequest & WithCertificateAuthority(CertificateAuthorityT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ACM_API CreateAcmeEndpointRequest()=default
CreateAcmeEndpointRequest & WithCertificateTags(CertificateTagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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