AWS SDK for C++  1.8.71
AWS SDK for C++
CreateCertificateAuthorityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <aws/acm-pca/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ACMPCA
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateCertificateAuthority"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
46  inline const CertificateAuthorityConfiguration& GetCertificateAuthorityConfiguration() const{ return m_certificateAuthorityConfiguration; }
47 
52  inline bool CertificateAuthorityConfigurationHasBeenSet() const { return m_certificateAuthorityConfigurationHasBeenSet; }
53 
58  inline void SetCertificateAuthorityConfiguration(const CertificateAuthorityConfiguration& value) { m_certificateAuthorityConfigurationHasBeenSet = true; m_certificateAuthorityConfiguration = value; }
59 
64  inline void SetCertificateAuthorityConfiguration(CertificateAuthorityConfiguration&& value) { m_certificateAuthorityConfigurationHasBeenSet = true; m_certificateAuthorityConfiguration = std::move(value); }
65 
70  inline CreateCertificateAuthorityRequest& WithCertificateAuthorityConfiguration(const CertificateAuthorityConfiguration& value) { SetCertificateAuthorityConfiguration(value); return *this;}
71 
76  inline CreateCertificateAuthorityRequest& WithCertificateAuthorityConfiguration(CertificateAuthorityConfiguration&& value) { SetCertificateAuthorityConfiguration(std::move(value)); return *this;}
77 
78 
88  inline const RevocationConfiguration& GetRevocationConfiguration() const{ return m_revocationConfiguration; }
89 
99  inline bool RevocationConfigurationHasBeenSet() const { return m_revocationConfigurationHasBeenSet; }
100 
110  inline void SetRevocationConfiguration(const RevocationConfiguration& value) { m_revocationConfigurationHasBeenSet = true; m_revocationConfiguration = value; }
111 
121  inline void SetRevocationConfiguration(RevocationConfiguration&& value) { m_revocationConfigurationHasBeenSet = true; m_revocationConfiguration = std::move(value); }
122 
132  inline CreateCertificateAuthorityRequest& WithRevocationConfiguration(const RevocationConfiguration& value) { SetRevocationConfiguration(value); return *this;}
133 
143  inline CreateCertificateAuthorityRequest& WithRevocationConfiguration(RevocationConfiguration&& value) { SetRevocationConfiguration(std::move(value)); return *this;}
144 
145 
149  inline const CertificateAuthorityType& GetCertificateAuthorityType() const{ return m_certificateAuthorityType; }
150 
154  inline bool CertificateAuthorityTypeHasBeenSet() const { return m_certificateAuthorityTypeHasBeenSet; }
155 
159  inline void SetCertificateAuthorityType(const CertificateAuthorityType& value) { m_certificateAuthorityTypeHasBeenSet = true; m_certificateAuthorityType = value; }
160 
164  inline void SetCertificateAuthorityType(CertificateAuthorityType&& value) { m_certificateAuthorityTypeHasBeenSet = true; m_certificateAuthorityType = std::move(value); }
165 
169  inline CreateCertificateAuthorityRequest& WithCertificateAuthorityType(const CertificateAuthorityType& value) { SetCertificateAuthorityType(value); return *this;}
170 
174  inline CreateCertificateAuthorityRequest& WithCertificateAuthorityType(CertificateAuthorityType&& value) { SetCertificateAuthorityType(std::move(value)); return *this;}
175 
176 
185  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
186 
195  inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
196 
205  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
206 
215  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
216 
225  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
226 
235  inline CreateCertificateAuthorityRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
236 
245  inline CreateCertificateAuthorityRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
246 
255  inline CreateCertificateAuthorityRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
256 
257 
265  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
266 
274  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
275 
283  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
284 
292  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
293 
301  inline CreateCertificateAuthorityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
302 
310  inline CreateCertificateAuthorityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
311 
319  inline CreateCertificateAuthorityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
320 
328  inline CreateCertificateAuthorityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
329 
330  private:
331 
332  CertificateAuthorityConfiguration m_certificateAuthorityConfiguration;
333  bool m_certificateAuthorityConfigurationHasBeenSet;
334 
335  RevocationConfiguration m_revocationConfiguration;
336  bool m_revocationConfigurationHasBeenSet;
337 
338  CertificateAuthorityType m_certificateAuthorityType;
339  bool m_certificateAuthorityTypeHasBeenSet;
340 
341  Aws::String m_idempotencyToken;
342  bool m_idempotencyTokenHasBeenSet;
343 
344  Aws::Vector<Tag> m_tags;
345  bool m_tagsHasBeenSet;
346  };
347 
348 } // namespace Model
349 } // namespace ACMPCA
350 } // namespace Aws
CreateCertificateAuthorityRequest & WithIdempotencyToken(const char *value)
CreateCertificateAuthorityRequest & WithRevocationConfiguration(const RevocationConfiguration &value)
CreateCertificateAuthorityRequest & WithCertificateAuthorityType(CertificateAuthorityType &&value)
CreateCertificateAuthorityRequest & WithCertificateAuthorityConfiguration(const CertificateAuthorityConfiguration &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateCertificateAuthorityRequest & WithCertificateAuthorityConfiguration(CertificateAuthorityConfiguration &&value)
CreateCertificateAuthorityRequest & AddTags(const Tag &value)
void SetCertificateAuthorityConfiguration(const CertificateAuthorityConfiguration &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const CertificateAuthorityConfiguration & GetCertificateAuthorityConfiguration() const
CreateCertificateAuthorityRequest & WithIdempotencyToken(Aws::String &&value)
void SetCertificateAuthorityType(const CertificateAuthorityType &value)
CreateCertificateAuthorityRequest & WithIdempotencyToken(const Aws::String &value)
CreateCertificateAuthorityRequest & WithRevocationConfiguration(RevocationConfiguration &&value)
void SetRevocationConfiguration(const RevocationConfiguration &value)
CreateCertificateAuthorityRequest & WithTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateCertificateAuthorityRequest & AddTags(Tag &&value)
CreateCertificateAuthorityRequest & WithCertificateAuthorityType(const CertificateAuthorityType &value)
CreateCertificateAuthorityRequest & WithTags(Aws::Vector< Tag > &&value)
#define AWS_ACMPCA_API
void SetCertificateAuthorityConfiguration(CertificateAuthorityConfiguration &&value)