AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateProvisioningProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
11#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
12#include <aws/iot-managed-integrations/model/ProvisioningType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoTManagedIntegrations {
18namespace Model {
19
23 public:
24 AWS_IOTMANAGEDINTEGRATIONS_API CreateProvisioningProfileRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateProvisioningProfile"; }
31
32 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
33
35
39 inline ProvisioningType GetProvisioningType() const { return m_provisioningType; }
40 inline bool ProvisioningTypeHasBeenSet() const { return m_provisioningTypeHasBeenSet; }
42 m_provisioningTypeHasBeenSet = true;
43 m_provisioningType = value;
44 }
50
52
55 inline const Aws::String& GetCaCertificate() const { return m_caCertificate; }
56 inline bool CaCertificateHasBeenSet() const { return m_caCertificateHasBeenSet; }
57 template <typename CaCertificateT = Aws::String>
58 void SetCaCertificate(CaCertificateT&& value) {
59 m_caCertificateHasBeenSet = true;
60 m_caCertificate = std::forward<CaCertificateT>(value);
61 }
62 template <typename CaCertificateT = Aws::String>
64 SetCaCertificate(std::forward<CaCertificateT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::String& GetClaimCertificate() const { return m_claimCertificate; }
76 inline bool ClaimCertificateHasBeenSet() const { return m_claimCertificateHasBeenSet; }
77 template <typename ClaimCertificateT = Aws::String>
78 void SetClaimCertificate(ClaimCertificateT&& value) {
79 m_claimCertificateHasBeenSet = true;
80 m_claimCertificate = std::forward<ClaimCertificateT>(value);
81 }
82 template <typename ClaimCertificateT = Aws::String>
84 SetClaimCertificate(std::forward<ClaimCertificateT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template <typename NameT = Aws::String>
96 void SetName(NameT&& value) {
97 m_nameHasBeenSet = true;
98 m_name = std::forward<NameT>(value);
99 }
100 template <typename NameT = Aws::String>
102 SetName(std::forward<NameT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::String& GetClientToken() const { return m_clientToken; }
114 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
115 template <typename ClientTokenT = Aws::String>
116 void SetClientToken(ClientTokenT&& value) {
117 m_clientTokenHasBeenSet = true;
118 m_clientToken = std::forward<ClientTokenT>(value);
119 }
120 template <typename ClientTokenT = Aws::String>
122 SetClientToken(std::forward<ClientTokenT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 CreateProvisioningProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151 private:
153
154 Aws::String m_caCertificate;
155
156 Aws::String m_claimCertificate;
157
158 Aws::String m_name;
159
161
163 bool m_provisioningTypeHasBeenSet = false;
164 bool m_caCertificateHasBeenSet = false;
165 bool m_claimCertificateHasBeenSet = false;
166 bool m_nameHasBeenSet = false;
167 bool m_clientTokenHasBeenSet = true;
168 bool m_tagsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace IoTManagedIntegrations
173} // namespace Aws
CreateProvisioningProfileRequest & WithProvisioningType(ProvisioningType value)
CreateProvisioningProfileRequest & WithClaimCertificate(ClaimCertificateT &&value)
CreateProvisioningProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API CreateProvisioningProfileRequest()=default
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
CreateProvisioningProfileRequest & WithCaCertificate(CaCertificateT &&value)
CreateProvisioningProfileRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String