AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/LocationServiceRequest.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/ApiKeyRestrictions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LocationService {
17namespace Model {
18
22 public:
23 AWS_LOCATIONSERVICE_API UpdateKeyRequest() = 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 "UpdateKey"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetKeyName() const { return m_keyName; }
38 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
39 template <typename KeyNameT = Aws::String>
40 void SetKeyName(KeyNameT&& value) {
41 m_keyNameHasBeenSet = true;
42 m_keyName = std::forward<KeyNameT>(value);
43 }
44 template <typename KeyNameT = Aws::String>
45 UpdateKeyRequest& WithKeyName(KeyNameT&& value) {
46 SetKeyName(std::forward<KeyNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 UpdateKeyRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::Utils::DateTime& GetExpireTime() const { return m_expireTime; }
76 inline bool ExpireTimeHasBeenSet() const { return m_expireTimeHasBeenSet; }
77 template <typename ExpireTimeT = Aws::Utils::DateTime>
78 void SetExpireTime(ExpireTimeT&& value) {
79 m_expireTimeHasBeenSet = true;
80 m_expireTime = std::forward<ExpireTimeT>(value);
81 }
82 template <typename ExpireTimeT = Aws::Utils::DateTime>
83 UpdateKeyRequest& WithExpireTime(ExpireTimeT&& value) {
84 SetExpireTime(std::forward<ExpireTimeT>(value));
85 return *this;
86 }
88
90
94 inline bool GetNoExpiry() const { return m_noExpiry; }
95 inline bool NoExpiryHasBeenSet() const { return m_noExpiryHasBeenSet; }
96 inline void SetNoExpiry(bool value) {
97 m_noExpiryHasBeenSet = true;
98 m_noExpiry = value;
99 }
100 inline UpdateKeyRequest& WithNoExpiry(bool value) {
101 SetNoExpiry(value);
102 return *this;
103 }
105
107
114 inline bool GetForceUpdate() const { return m_forceUpdate; }
115 inline bool ForceUpdateHasBeenSet() const { return m_forceUpdateHasBeenSet; }
116 inline void SetForceUpdate(bool value) {
117 m_forceUpdateHasBeenSet = true;
118 m_forceUpdate = value;
119 }
120 inline UpdateKeyRequest& WithForceUpdate(bool value) {
121 SetForceUpdate(value);
122 return *this;
123 }
125
127
130 inline const ApiKeyRestrictions& GetRestrictions() const { return m_restrictions; }
131 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
132 template <typename RestrictionsT = ApiKeyRestrictions>
133 void SetRestrictions(RestrictionsT&& value) {
134 m_restrictionsHasBeenSet = true;
135 m_restrictions = std::forward<RestrictionsT>(value);
136 }
137 template <typename RestrictionsT = ApiKeyRestrictions>
138 UpdateKeyRequest& WithRestrictions(RestrictionsT&& value) {
139 SetRestrictions(std::forward<RestrictionsT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_keyName;
145
146 Aws::String m_description;
147
148 Aws::Utils::DateTime m_expireTime{};
149
150 bool m_noExpiry{false};
151
152 bool m_forceUpdate{false};
153
154 ApiKeyRestrictions m_restrictions;
155 bool m_keyNameHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_expireTimeHasBeenSet = false;
158 bool m_noExpiryHasBeenSet = false;
159 bool m_forceUpdateHasBeenSet = false;
160 bool m_restrictionsHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace LocationService
165} // namespace Aws
const Aws::Utils::DateTime & GetExpireTime() const
UpdateKeyRequest & WithNoExpiry(bool value)
UpdateKeyRequest & WithKeyName(KeyNameT &&value)
UpdateKeyRequest & WithExpireTime(ExpireTimeT &&value)
UpdateKeyRequest & WithForceUpdate(bool value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
UpdateKeyRequest & WithRestrictions(RestrictionsT &&value)
const ApiKeyRestrictions & GetRestrictions() const
AWS_LOCATIONSERVICE_API UpdateKeyRequest()=default
UpdateKeyRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String