AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateKeyRequest.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/location/model/ApiKeyRestrictions.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LocationService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LOCATIONSERVICE_API UpdateKeyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateKey"; }
33
34 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetKeyName() const { return m_keyName; }
42 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
43 template<typename KeyNameT = Aws::String>
44 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
45 template<typename KeyNameT = Aws::String>
46 UpdateKeyRequest& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 template<typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
57 template<typename DescriptionT = Aws::String>
58 UpdateKeyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
60
62
67 inline const Aws::Utils::DateTime& GetExpireTime() const { return m_expireTime; }
68 inline bool ExpireTimeHasBeenSet() const { return m_expireTimeHasBeenSet; }
69 template<typename ExpireTimeT = Aws::Utils::DateTime>
70 void SetExpireTime(ExpireTimeT&& value) { m_expireTimeHasBeenSet = true; m_expireTime = std::forward<ExpireTimeT>(value); }
71 template<typename ExpireTimeT = Aws::Utils::DateTime>
72 UpdateKeyRequest& WithExpireTime(ExpireTimeT&& value) { SetExpireTime(std::forward<ExpireTimeT>(value)); return *this;}
74
76
80 inline bool GetNoExpiry() const { return m_noExpiry; }
81 inline bool NoExpiryHasBeenSet() const { return m_noExpiryHasBeenSet; }
82 inline void SetNoExpiry(bool value) { m_noExpiryHasBeenSet = true; m_noExpiry = value; }
83 inline UpdateKeyRequest& WithNoExpiry(bool value) { SetNoExpiry(value); return *this;}
85
87
94 inline bool GetForceUpdate() const { return m_forceUpdate; }
95 inline bool ForceUpdateHasBeenSet() const { return m_forceUpdateHasBeenSet; }
96 inline void SetForceUpdate(bool value) { m_forceUpdateHasBeenSet = true; m_forceUpdate = value; }
97 inline UpdateKeyRequest& WithForceUpdate(bool value) { SetForceUpdate(value); return *this;}
99
101
104 inline const ApiKeyRestrictions& GetRestrictions() const { return m_restrictions; }
105 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
106 template<typename RestrictionsT = ApiKeyRestrictions>
107 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
108 template<typename RestrictionsT = ApiKeyRestrictions>
109 UpdateKeyRequest& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
111 private:
112
113 Aws::String m_keyName;
114 bool m_keyNameHasBeenSet = false;
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
119 Aws::Utils::DateTime m_expireTime{};
120 bool m_expireTimeHasBeenSet = false;
121
122 bool m_noExpiry{false};
123 bool m_noExpiryHasBeenSet = false;
124
125 bool m_forceUpdate{false};
126 bool m_forceUpdateHasBeenSet = false;
127
128 ApiKeyRestrictions m_restrictions;
129 bool m_restrictionsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace LocationService
134} // 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