AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateCertificateProviderRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/IoTRequest.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/CertificateProviderOperation.h>
13#include <aws/iot/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoT {
19namespace Model {
20
24 public:
25 AWS_IOT_API CreateCertificateProviderRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateCertificateProvider"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetCertificateProviderName() const { return m_certificateProviderName; }
40 inline bool CertificateProviderNameHasBeenSet() const { return m_certificateProviderNameHasBeenSet; }
41 template <typename CertificateProviderNameT = Aws::String>
42 void SetCertificateProviderName(CertificateProviderNameT&& value) {
43 m_certificateProviderNameHasBeenSet = true;
44 m_certificateProviderName = std::forward<CertificateProviderNameT>(value);
45 }
46 template <typename CertificateProviderNameT = Aws::String>
48 SetCertificateProviderName(std::forward<CertificateProviderNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLambdaFunctionArn() const { return m_lambdaFunctionArn; }
58 inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; }
59 template <typename LambdaFunctionArnT = Aws::String>
60 void SetLambdaFunctionArn(LambdaFunctionArnT&& value) {
61 m_lambdaFunctionArnHasBeenSet = true;
62 m_lambdaFunctionArn = std::forward<LambdaFunctionArnT>(value);
63 }
64 template <typename LambdaFunctionArnT = Aws::String>
66 SetLambdaFunctionArn(std::forward<LambdaFunctionArnT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<CertificateProviderOperation>& GetAccountDefaultForOperations() const { return m_accountDefaultForOperations; }
77 inline bool AccountDefaultForOperationsHasBeenSet() const { return m_accountDefaultForOperationsHasBeenSet; }
78 template <typename AccountDefaultForOperationsT = Aws::Vector<CertificateProviderOperation>>
79 void SetAccountDefaultForOperations(AccountDefaultForOperationsT&& value) {
80 m_accountDefaultForOperationsHasBeenSet = true;
81 m_accountDefaultForOperations = std::forward<AccountDefaultForOperationsT>(value);
82 }
83 template <typename AccountDefaultForOperationsT = Aws::Vector<CertificateProviderOperation>>
85 SetAccountDefaultForOperations(std::forward<AccountDefaultForOperationsT>(value));
86 return *this;
87 }
89 m_accountDefaultForOperationsHasBeenSet = true;
90 m_accountDefaultForOperations.push_back(value);
91 return *this;
92 }
94
96
101 inline const Aws::String& GetClientToken() const { return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 template <typename ClientTokenT = Aws::String>
104 void SetClientToken(ClientTokenT&& value) {
105 m_clientTokenHasBeenSet = true;
106 m_clientToken = std::forward<ClientTokenT>(value);
107 }
108 template <typename ClientTokenT = Aws::String>
110 SetClientToken(std::forward<ClientTokenT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Vector<Tag>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsT = Tag>
133 m_tagsHasBeenSet = true;
134 m_tags.emplace_back(std::forward<TagsT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_certificateProviderName;
140
141 Aws::String m_lambdaFunctionArn;
142
143 Aws::Vector<CertificateProviderOperation> m_accountDefaultForOperations;
144
146
147 Aws::Vector<Tag> m_tags;
148 bool m_certificateProviderNameHasBeenSet = false;
149 bool m_lambdaFunctionArnHasBeenSet = false;
150 bool m_accountDefaultForOperationsHasBeenSet = false;
151 bool m_clientTokenHasBeenSet = true;
152 bool m_tagsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace IoT
157} // namespace Aws
CreateCertificateProviderRequest & WithCertificateProviderName(CertificateProviderNameT &&value)
CreateCertificateProviderRequest & AddTags(TagsT &&value)
CreateCertificateProviderRequest & WithClientToken(ClientTokenT &&value)
CreateCertificateProviderRequest & WithTags(TagsT &&value)
const Aws::Vector< CertificateProviderOperation > & GetAccountDefaultForOperations() const
CreateCertificateProviderRequest & AddAccountDefaultForOperations(CertificateProviderOperation value)
void SetCertificateProviderName(CertificateProviderNameT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateCertificateProviderRequest & WithLambdaFunctionArn(LambdaFunctionArnT &&value)
void SetAccountDefaultForOperations(AccountDefaultForOperationsT &&value)
CreateCertificateProviderRequest & WithAccountDefaultForOperations(AccountDefaultForOperationsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector