AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RegisterCertificateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/CertificateType.h>
11#include <aws/ds/model/ClientCertAuthSettings.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DirectoryService {
17namespace Model {
18
22 public:
23 AWS_DIRECTORYSERVICE_API RegisterCertificateRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "RegisterCertificate"; }
30
31 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
40 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
41 template <typename DirectoryIdT = Aws::String>
42 void SetDirectoryId(DirectoryIdT&& value) {
43 m_directoryIdHasBeenSet = true;
44 m_directoryId = std::forward<DirectoryIdT>(value);
45 }
46 template <typename DirectoryIdT = Aws::String>
48 SetDirectoryId(std::forward<DirectoryIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCertificateData() const { return m_certificateData; }
58 inline bool CertificateDataHasBeenSet() const { return m_certificateDataHasBeenSet; }
59 template <typename CertificateDataT = Aws::String>
60 void SetCertificateData(CertificateDataT&& value) {
61 m_certificateDataHasBeenSet = true;
62 m_certificateData = std::forward<CertificateDataT>(value);
63 }
64 template <typename CertificateDataT = Aws::String>
66 SetCertificateData(std::forward<CertificateDataT>(value));
67 return *this;
68 }
70
72
77 inline CertificateType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(CertificateType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
94 inline const ClientCertAuthSettings& GetClientCertAuthSettings() const { return m_clientCertAuthSettings; }
95 inline bool ClientCertAuthSettingsHasBeenSet() const { return m_clientCertAuthSettingsHasBeenSet; }
96 template <typename ClientCertAuthSettingsT = ClientCertAuthSettings>
97 void SetClientCertAuthSettings(ClientCertAuthSettingsT&& value) {
98 m_clientCertAuthSettingsHasBeenSet = true;
99 m_clientCertAuthSettings = std::forward<ClientCertAuthSettingsT>(value);
100 }
101 template <typename ClientCertAuthSettingsT = ClientCertAuthSettings>
102 RegisterCertificateRequest& WithClientCertAuthSettings(ClientCertAuthSettingsT&& value) {
103 SetClientCertAuthSettings(std::forward<ClientCertAuthSettingsT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_directoryId;
109
110 Aws::String m_certificateData;
111
113
114 ClientCertAuthSettings m_clientCertAuthSettings;
115 bool m_directoryIdHasBeenSet = false;
116 bool m_certificateDataHasBeenSet = false;
117 bool m_typeHasBeenSet = false;
118 bool m_clientCertAuthSettingsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace DirectoryService
123} // namespace Aws
RegisterCertificateRequest & WithCertificateData(CertificateDataT &&value)
RegisterCertificateRequest & WithType(CertificateType value)
RegisterCertificateRequest & WithClientCertAuthSettings(ClientCertAuthSettingsT &&value)
AWS_DIRECTORYSERVICE_API RegisterCertificateRequest()=default
RegisterCertificateRequest & WithDirectoryId(DirectoryIdT &&value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String