AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSpaceRequest.h
1
6#pragma once
7#include <aws/repostspace/Repostspace_EXPORTS.h>
8#include <aws/repostspace/RepostspaceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/repostspace/model/TierLevel.h>
12#include <utility>
13
14namespace Aws
15{
16namespace repostspace
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REPOSTSPACE_API CreateSpaceRequest();
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 "CreateSpace"; }
33
34 AWS_REPOSTSPACE_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDescription() const{ return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
45 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
46 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
47 inline CreateSpaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
48 inline CreateSpaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
49 inline CreateSpaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateSpaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateSpaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateSpaceRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
71 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
72 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
73 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
74 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
75 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
76 inline CreateSpaceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
77 inline CreateSpaceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
78 inline CreateSpaceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80
82
88 inline const Aws::String& GetSubdomain() const{ return m_subdomain; }
89 inline bool SubdomainHasBeenSet() const { return m_subdomainHasBeenSet; }
90 inline void SetSubdomain(const Aws::String& value) { m_subdomainHasBeenSet = true; m_subdomain = value; }
91 inline void SetSubdomain(Aws::String&& value) { m_subdomainHasBeenSet = true; m_subdomain = std::move(value); }
92 inline void SetSubdomain(const char* value) { m_subdomainHasBeenSet = true; m_subdomain.assign(value); }
93 inline CreateSpaceRequest& WithSubdomain(const Aws::String& value) { SetSubdomain(value); return *this;}
94 inline CreateSpaceRequest& WithSubdomain(Aws::String&& value) { SetSubdomain(std::move(value)); return *this;}
95 inline CreateSpaceRequest& WithSubdomain(const char* value) { SetSubdomain(value); return *this;}
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline CreateSpaceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
107 inline CreateSpaceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
108 inline CreateSpaceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
109 inline CreateSpaceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
110 inline CreateSpaceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline CreateSpaceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
112 inline CreateSpaceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
113 inline CreateSpaceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
114 inline CreateSpaceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
116
118
121 inline const TierLevel& GetTier() const{ return m_tier; }
122 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
123 inline void SetTier(const TierLevel& value) { m_tierHasBeenSet = true; m_tier = value; }
124 inline void SetTier(TierLevel&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
125 inline CreateSpaceRequest& WithTier(const TierLevel& value) { SetTier(value); return *this;}
126 inline CreateSpaceRequest& WithTier(TierLevel&& value) { SetTier(std::move(value)); return *this;}
128
130
135 inline const Aws::String& GetUserKMSKey() const{ return m_userKMSKey; }
136 inline bool UserKMSKeyHasBeenSet() const { return m_userKMSKeyHasBeenSet; }
137 inline void SetUserKMSKey(const Aws::String& value) { m_userKMSKeyHasBeenSet = true; m_userKMSKey = value; }
138 inline void SetUserKMSKey(Aws::String&& value) { m_userKMSKeyHasBeenSet = true; m_userKMSKey = std::move(value); }
139 inline void SetUserKMSKey(const char* value) { m_userKMSKeyHasBeenSet = true; m_userKMSKey.assign(value); }
140 inline CreateSpaceRequest& WithUserKMSKey(const Aws::String& value) { SetUserKMSKey(value); return *this;}
141 inline CreateSpaceRequest& WithUserKMSKey(Aws::String&& value) { SetUserKMSKey(std::move(value)); return *this;}
142 inline CreateSpaceRequest& WithUserKMSKey(const char* value) { SetUserKMSKey(value); return *this;}
144 private:
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 Aws::String m_roleArn;
153 bool m_roleArnHasBeenSet = false;
154
155 Aws::String m_subdomain;
156 bool m_subdomainHasBeenSet = false;
157
159 bool m_tagsHasBeenSet = false;
160
161 TierLevel m_tier;
162 bool m_tierHasBeenSet = false;
163
164 Aws::String m_userKMSKey;
165 bool m_userKMSKeyHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace repostspace
170} // namespace Aws
void SetDescription(const Aws::String &value)
AWS_REPOSTSPACE_API Aws::String SerializePayload() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSpaceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSpaceRequest & WithDescription(const Aws::String &value)
CreateSpaceRequest & WithDescription(Aws::String &&value)
CreateSpaceRequest & WithRoleArn(Aws::String &&value)
CreateSpaceRequest & WithSubdomain(const char *value)
CreateSpaceRequest & WithUserKMSKey(const char *value)
CreateSpaceRequest & WithSubdomain(Aws::String &&value)
CreateSpaceRequest & WithName(const Aws::String &value)
CreateSpaceRequest & WithTier(TierLevel &&value)
virtual const char * GetServiceRequestName() const override
CreateSpaceRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSpaceRequest & AddTags(const char *key, const char *value)
void SetUserKMSKey(const Aws::String &value)
void SetSubdomain(const Aws::String &value)
CreateSpaceRequest & WithTier(const TierLevel &value)
CreateSpaceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSpaceRequest & WithUserKMSKey(Aws::String &&value)
CreateSpaceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSpaceRequest & WithRoleArn(const char *value)
CreateSpaceRequest & AddTags(const char *key, Aws::String &&value)
CreateSpaceRequest & WithDescription(const char *value)
CreateSpaceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSpaceRequest & WithSubdomain(const Aws::String &value)
CreateSpaceRequest & WithName(const char *value)
CreateSpaceRequest & WithName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetRoleArn(const Aws::String &value)
CreateSpaceRequest & AddTags(Aws::String &&key, const char *value)
CreateSpaceRequest & WithUserKMSKey(const Aws::String &value)
CreateSpaceRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSpaceRequest & WithRoleArn(const Aws::String &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