AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
44 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
45 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
46 inline UpdateKeyRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
47 inline UpdateKeyRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
48 inline UpdateKeyRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;}
50
52
55 inline const Aws::String& GetDescription() const{ return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
59 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
60 inline UpdateKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
61 inline UpdateKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
62 inline UpdateKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
64
66
71 inline const Aws::Utils::DateTime& GetExpireTime() const{ return m_expireTime; }
72 inline bool ExpireTimeHasBeenSet() const { return m_expireTimeHasBeenSet; }
73 inline void SetExpireTime(const Aws::Utils::DateTime& value) { m_expireTimeHasBeenSet = true; m_expireTime = value; }
74 inline void SetExpireTime(Aws::Utils::DateTime&& value) { m_expireTimeHasBeenSet = true; m_expireTime = std::move(value); }
75 inline UpdateKeyRequest& WithExpireTime(const Aws::Utils::DateTime& value) { SetExpireTime(value); return *this;}
76 inline UpdateKeyRequest& WithExpireTime(Aws::Utils::DateTime&& value) { SetExpireTime(std::move(value)); return *this;}
78
80
84 inline bool GetNoExpiry() const{ return m_noExpiry; }
85 inline bool NoExpiryHasBeenSet() const { return m_noExpiryHasBeenSet; }
86 inline void SetNoExpiry(bool value) { m_noExpiryHasBeenSet = true; m_noExpiry = value; }
87 inline UpdateKeyRequest& WithNoExpiry(bool value) { SetNoExpiry(value); return *this;}
89
91
98 inline bool GetForceUpdate() const{ return m_forceUpdate; }
99 inline bool ForceUpdateHasBeenSet() const { return m_forceUpdateHasBeenSet; }
100 inline void SetForceUpdate(bool value) { m_forceUpdateHasBeenSet = true; m_forceUpdate = value; }
101 inline UpdateKeyRequest& WithForceUpdate(bool value) { SetForceUpdate(value); return *this;}
103
105
108 inline const ApiKeyRestrictions& GetRestrictions() const{ return m_restrictions; }
109 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
110 inline void SetRestrictions(const ApiKeyRestrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
111 inline void SetRestrictions(ApiKeyRestrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
112 inline UpdateKeyRequest& WithRestrictions(const ApiKeyRestrictions& value) { SetRestrictions(value); return *this;}
113 inline UpdateKeyRequest& WithRestrictions(ApiKeyRestrictions&& value) { SetRestrictions(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_keyName;
118 bool m_keyNameHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::Utils::DateTime m_expireTime;
124 bool m_expireTimeHasBeenSet = false;
125
126 bool m_noExpiry;
127 bool m_noExpiryHasBeenSet = false;
128
129 bool m_forceUpdate;
130 bool m_forceUpdateHasBeenSet = false;
131
132 ApiKeyRestrictions m_restrictions;
133 bool m_restrictionsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace LocationService
138} // namespace Aws
void SetRestrictions(const ApiKeyRestrictions &value)
const Aws::Utils::DateTime & GetExpireTime() const
UpdateKeyRequest & WithNoExpiry(bool value)
UpdateKeyRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
UpdateKeyRequest & WithForceUpdate(bool value)
UpdateKeyRequest & WithKeyName(const char *value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
const ApiKeyRestrictions & GetRestrictions() const
UpdateKeyRequest & WithDescription(Aws::String &&value)
void SetExpireTime(const Aws::Utils::DateTime &value)
UpdateKeyRequest & WithExpireTime(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
void SetRestrictions(ApiKeyRestrictions &&value)
UpdateKeyRequest & WithDescription(const char *value)
UpdateKeyRequest & WithKeyName(const Aws::String &value)
UpdateKeyRequest & WithKeyName(Aws::String &&value)
UpdateKeyRequest & WithExpireTime(Aws::Utils::DateTime &&value)
UpdateKeyRequest & WithRestrictions(ApiKeyRestrictions &&value)
void SetKeyName(const Aws::String &value)
AWS_LOCATIONSERVICE_API UpdateKeyRequest()
UpdateKeyRequest & WithRestrictions(const ApiKeyRestrictions &value)
void SetExpireTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String