AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateKeyRequest.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/location/model/ApiKeyRestrictions.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LocationService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LOCATIONSERVICE_API CreateKeyRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateKey"; }
34
35 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetKeyName() const{ return m_keyName; }
47 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
48 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
49 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
50 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
51 inline CreateKeyRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
52 inline CreateKeyRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
53 inline CreateKeyRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;}
55
57
60 inline const ApiKeyRestrictions& GetRestrictions() const{ return m_restrictions; }
61 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
62 inline void SetRestrictions(const ApiKeyRestrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
63 inline void SetRestrictions(ApiKeyRestrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
64 inline CreateKeyRequest& WithRestrictions(const ApiKeyRestrictions& value) { SetRestrictions(value); return *this;}
65 inline CreateKeyRequest& WithRestrictions(ApiKeyRestrictions&& value) { SetRestrictions(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline CreateKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline CreateKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
89 inline const Aws::Utils::DateTime& GetExpireTime() const{ return m_expireTime; }
90 inline bool ExpireTimeHasBeenSet() const { return m_expireTimeHasBeenSet; }
91 inline void SetExpireTime(const Aws::Utils::DateTime& value) { m_expireTimeHasBeenSet = true; m_expireTime = value; }
92 inline void SetExpireTime(Aws::Utils::DateTime&& value) { m_expireTimeHasBeenSet = true; m_expireTime = std::move(value); }
93 inline CreateKeyRequest& WithExpireTime(const Aws::Utils::DateTime& value) { SetExpireTime(value); return *this;}
94 inline CreateKeyRequest& WithExpireTime(Aws::Utils::DateTime&& value) { SetExpireTime(std::move(value)); return *this;}
96
98
102 inline bool GetNoExpiry() const{ return m_noExpiry; }
103 inline bool NoExpiryHasBeenSet() const { return m_noExpiryHasBeenSet; }
104 inline void SetNoExpiry(bool value) { m_noExpiryHasBeenSet = true; m_noExpiry = value; }
105 inline CreateKeyRequest& WithNoExpiry(bool value) { SetNoExpiry(value); return *this;}
107
109
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
124 inline CreateKeyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
125 inline CreateKeyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
126 inline CreateKeyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
127 inline CreateKeyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateKeyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateKeyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
130 inline CreateKeyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline CreateKeyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateKeyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
134 private:
135
136 Aws::String m_keyName;
137 bool m_keyNameHasBeenSet = false;
138
139 ApiKeyRestrictions m_restrictions;
140 bool m_restrictionsHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::Utils::DateTime m_expireTime;
146 bool m_expireTimeHasBeenSet = false;
147
148 bool m_noExpiry;
149 bool m_noExpiryHasBeenSet = false;
150
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace LocationService
157} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetRestrictions(const ApiKeyRestrictions &value)
CreateKeyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKeyRequest & WithKeyName(Aws::String &&value)
AWS_LOCATIONSERVICE_API CreateKeyRequest()
CreateKeyRequest & WithRestrictions(ApiKeyRestrictions &&value)
CreateKeyRequest & AddTags(const char *key, Aws::String &&value)
CreateKeyRequest & WithRestrictions(const ApiKeyRestrictions &value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CreateKeyRequest & WithKeyName(const char *value)
CreateKeyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateKeyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKeyRequest & WithDescription(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKeyRequest & WithKeyName(const Aws::String &value)
CreateKeyRequest & AddTags(Aws::String &&key, const char *value)
const ApiKeyRestrictions & GetRestrictions() const
void SetDescription(const Aws::String &value)
CreateKeyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateKeyRequest & WithDescription(Aws::String &&value)
void SetExpireTime(Aws::Utils::DateTime &&value)
void SetExpireTime(const Aws::Utils::DateTime &value)
CreateKeyRequest & WithExpireTime(Aws::Utils::DateTime &&value)
CreateKeyRequest & WithDescription(const char *value)
void SetRestrictions(ApiKeyRestrictions &&value)
CreateKeyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateKeyRequest & AddTags(const char *key, const char *value)
const Aws::Utils::DateTime & GetExpireTime() const
CreateKeyRequest & WithNoExpiry(bool value)
void SetKeyName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKeyRequest & AddTags(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateKeyRequest & WithExpireTime(const Aws::Utils::DateTime &value)
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