AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCertificateProviderRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/CertificateProviderOperation.h>
12#include <aws/iot/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOT_API CreateCertificateProviderRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCertificateProvider"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetCertificateProviderName() const { return m_certificateProviderName; }
44 inline bool CertificateProviderNameHasBeenSet() const { return m_certificateProviderNameHasBeenSet; }
45 template<typename CertificateProviderNameT = Aws::String>
46 void SetCertificateProviderName(CertificateProviderNameT&& value) { m_certificateProviderNameHasBeenSet = true; m_certificateProviderName = std::forward<CertificateProviderNameT>(value); }
47 template<typename CertificateProviderNameT = Aws::String>
48 CreateCertificateProviderRequest& WithCertificateProviderName(CertificateProviderNameT&& value) { SetCertificateProviderName(std::forward<CertificateProviderNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetLambdaFunctionArn() const { return m_lambdaFunctionArn; }
56 inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; }
57 template<typename LambdaFunctionArnT = Aws::String>
58 void SetLambdaFunctionArn(LambdaFunctionArnT&& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = std::forward<LambdaFunctionArnT>(value); }
59 template<typename LambdaFunctionArnT = Aws::String>
60 CreateCertificateProviderRequest& WithLambdaFunctionArn(LambdaFunctionArnT&& value) { SetLambdaFunctionArn(std::forward<LambdaFunctionArnT>(value)); return *this;}
62
64
68 inline const Aws::Vector<CertificateProviderOperation>& GetAccountDefaultForOperations() const { return m_accountDefaultForOperations; }
69 inline bool AccountDefaultForOperationsHasBeenSet() const { return m_accountDefaultForOperationsHasBeenSet; }
70 template<typename AccountDefaultForOperationsT = Aws::Vector<CertificateProviderOperation>>
71 void SetAccountDefaultForOperations(AccountDefaultForOperationsT&& value) { m_accountDefaultForOperationsHasBeenSet = true; m_accountDefaultForOperations = std::forward<AccountDefaultForOperationsT>(value); }
72 template<typename AccountDefaultForOperationsT = Aws::Vector<CertificateProviderOperation>>
73 CreateCertificateProviderRequest& WithAccountDefaultForOperations(AccountDefaultForOperationsT&& value) { SetAccountDefaultForOperations(std::forward<AccountDefaultForOperationsT>(value)); return *this;}
74 inline CreateCertificateProviderRequest& AddAccountDefaultForOperations(CertificateProviderOperation value) { m_accountDefaultForOperationsHasBeenSet = true; m_accountDefaultForOperations.push_back(value); return *this; }
76
78
83 inline const Aws::String& GetClientToken() const { return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 template<typename ClientTokenT = Aws::String>
86 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
87 template<typename ClientTokenT = Aws::String>
88 CreateCertificateProviderRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
90
92
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Vector<Tag>>
100 CreateCertificateProviderRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsT = Tag>
102 CreateCertificateProviderRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
104 private:
105
106 Aws::String m_certificateProviderName;
107 bool m_certificateProviderNameHasBeenSet = false;
108
109 Aws::String m_lambdaFunctionArn;
110 bool m_lambdaFunctionArnHasBeenSet = false;
111
112 Aws::Vector<CertificateProviderOperation> m_accountDefaultForOperations;
113 bool m_accountDefaultForOperationsHasBeenSet = false;
114
116 bool m_clientTokenHasBeenSet = true;
117
118 Aws::Vector<Tag> m_tags;
119 bool m_tagsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IoT
124} // 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