AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateApiKeyRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/apigateway/model/StageKey.h>
13#include <utility>
14
15namespace Aws
16{
17namespace APIGateway
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_APIGATEWAY_API CreateApiKeyRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApiKey"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateApiKeyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateApiKeyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline bool GetEnabled() const { return m_enabled; }
70 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
71 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
72 inline CreateApiKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
74
76
81 inline bool GetGenerateDistinctId() const { return m_generateDistinctId; }
82 inline bool GenerateDistinctIdHasBeenSet() const { return m_generateDistinctIdHasBeenSet; }
83 inline void SetGenerateDistinctId(bool value) { m_generateDistinctIdHasBeenSet = true; m_generateDistinctId = value; }
84 inline CreateApiKeyRequest& WithGenerateDistinctId(bool value) { SetGenerateDistinctId(value); return *this;}
86
88
91 inline const Aws::String& GetValue() const { return m_value; }
92 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
93 template<typename ValueT = Aws::String>
94 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
95 template<typename ValueT = Aws::String>
96 CreateApiKeyRequest& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
98
100
104 inline const Aws::Vector<StageKey>& GetStageKeys() const { return m_stageKeys; }
105 inline bool StageKeysHasBeenSet() const { return m_stageKeysHasBeenSet; }
106 template<typename StageKeysT = Aws::Vector<StageKey>>
107 void SetStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = std::forward<StageKeysT>(value); }
108 template<typename StageKeysT = Aws::Vector<StageKey>>
109 CreateApiKeyRequest& WithStageKeys(StageKeysT&& value) { SetStageKeys(std::forward<StageKeysT>(value)); return *this;}
110 template<typename StageKeysT = StageKey>
111 CreateApiKeyRequest& AddStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.emplace_back(std::forward<StageKeysT>(value)); return *this; }
113
115
119 inline const Aws::String& GetCustomerId() const { return m_customerId; }
120 inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; }
121 template<typename CustomerIdT = Aws::String>
122 void SetCustomerId(CustomerIdT&& value) { m_customerIdHasBeenSet = true; m_customerId = std::forward<CustomerIdT>(value); }
123 template<typename CustomerIdT = Aws::String>
124 CreateApiKeyRequest& WithCustomerId(CustomerIdT&& value) { SetCustomerId(std::forward<CustomerIdT>(value)); return *this;}
126
128
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
137 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 CreateApiKeyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
139 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 CreateApiKeyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
142 }
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 bool m_enabled{false};
153 bool m_enabledHasBeenSet = false;
154
155 bool m_generateDistinctId{false};
156 bool m_generateDistinctIdHasBeenSet = false;
157
158 Aws::String m_value;
159 bool m_valueHasBeenSet = false;
160
161 Aws::Vector<StageKey> m_stageKeys;
162 bool m_stageKeysHasBeenSet = false;
163
164 Aws::String m_customerId;
165 bool m_customerIdHasBeenSet = false;
166
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace APIGateway
173} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApiKeyRequest & WithName(NameT &&value)
CreateApiKeyRequest & WithValue(ValueT &&value)
CreateApiKeyRequest & WithCustomerId(CustomerIdT &&value)
CreateApiKeyRequest & AddStageKeys(StageKeysT &&value)
CreateApiKeyRequest & WithEnabled(bool value)
CreateApiKeyRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateApiKeyRequest & WithTags(TagsT &&value)
CreateApiKeyRequest & WithGenerateDistinctId(bool value)
CreateApiKeyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApiKeyRequest & WithStageKeys(StageKeysT &&value)
AWS_APIGATEWAY_API CreateApiKeyRequest()=default
const Aws::Vector< StageKey > & GetStageKeys() const
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
std::vector< T, Aws::Allocator< T > > Vector