AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTemplateRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/quicksight/model/TemplateSourceEntity.h>
12#include <aws/quicksight/model/TemplateVersionDefinition.h>
13#include <aws/quicksight/model/ValidationStrategy.h>
14#include <aws/quicksight/model/ResourcePermission.h>
15#include <aws/quicksight/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace QuickSight
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_QUICKSIGHT_API CreateTemplateRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateTemplate"; }
37
38 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
48 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
49 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
50 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
51 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
52 inline CreateTemplateRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
53 inline CreateTemplateRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
54 inline CreateTemplateRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
56
58
62 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
63 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
64 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
65 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
66 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
67 inline CreateTemplateRequest& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
68 inline CreateTemplateRequest& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
69 inline CreateTemplateRequest& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline CreateTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline CreateTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline CreateTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::Vector<ResourcePermission>& GetPermissions() const{ return m_permissions; }
91 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
92 inline void SetPermissions(const Aws::Vector<ResourcePermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
93 inline void SetPermissions(Aws::Vector<ResourcePermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
95 inline CreateTemplateRequest& WithPermissions(Aws::Vector<ResourcePermission>&& value) { SetPermissions(std::move(value)); return *this;}
96 inline CreateTemplateRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
97 inline CreateTemplateRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
99
101
117 inline const TemplateSourceEntity& GetSourceEntity() const{ return m_sourceEntity; }
118 inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
119 inline void SetSourceEntity(const TemplateSourceEntity& value) { m_sourceEntityHasBeenSet = true; m_sourceEntity = value; }
120 inline void SetSourceEntity(TemplateSourceEntity&& value) { m_sourceEntityHasBeenSet = true; m_sourceEntity = std::move(value); }
121 inline CreateTemplateRequest& WithSourceEntity(const TemplateSourceEntity& value) { SetSourceEntity(value); return *this;}
122 inline CreateTemplateRequest& WithSourceEntity(TemplateSourceEntity&& value) { SetSourceEntity(std::move(value)); return *this;}
124
126
130 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateTemplateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
135 inline CreateTemplateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateTemplateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
137 inline CreateTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
139
141
148 inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
149 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
150 inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
151 inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
152 inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
154 inline CreateTemplateRequest& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
155 inline CreateTemplateRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
157
159
165 inline const TemplateVersionDefinition& GetDefinition() const{ return m_definition; }
166 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
167 inline void SetDefinition(const TemplateVersionDefinition& value) { m_definitionHasBeenSet = true; m_definition = value; }
168 inline void SetDefinition(TemplateVersionDefinition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
170 inline CreateTemplateRequest& WithDefinition(TemplateVersionDefinition&& value) { SetDefinition(std::move(value)); return *this;}
172
174
178 inline const ValidationStrategy& GetValidationStrategy() const{ return m_validationStrategy; }
179 inline bool ValidationStrategyHasBeenSet() const { return m_validationStrategyHasBeenSet; }
180 inline void SetValidationStrategy(const ValidationStrategy& value) { m_validationStrategyHasBeenSet = true; m_validationStrategy = value; }
181 inline void SetValidationStrategy(ValidationStrategy&& value) { m_validationStrategyHasBeenSet = true; m_validationStrategy = std::move(value); }
185 private:
186
187 Aws::String m_awsAccountId;
188 bool m_awsAccountIdHasBeenSet = false;
189
190 Aws::String m_templateId;
191 bool m_templateIdHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
197 bool m_permissionsHasBeenSet = false;
198
199 TemplateSourceEntity m_sourceEntity;
200 bool m_sourceEntityHasBeenSet = false;
201
202 Aws::Vector<Tag> m_tags;
203 bool m_tagsHasBeenSet = false;
204
205 Aws::String m_versionDescription;
206 bool m_versionDescriptionHasBeenSet = false;
207
208 TemplateVersionDefinition m_definition;
209 bool m_definitionHasBeenSet = false;
210
211 ValidationStrategy m_validationStrategy;
212 bool m_validationStrategyHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace QuickSight
217} // namespace Aws
CreateTemplateRequest & WithSourceEntity(const TemplateSourceEntity &value)
const Aws::Vector< ResourcePermission > & GetPermissions() const
CreateTemplateRequest & WithTemplateId(const Aws::String &value)
void SetDefinition(TemplateVersionDefinition &&value)
const TemplateSourceEntity & GetSourceEntity() const
CreateTemplateRequest & WithPermissions(Aws::Vector< ResourcePermission > &&value)
CreateTemplateRequest & WithTags(const Aws::Vector< Tag > &value)
const ValidationStrategy & GetValidationStrategy() const
CreateTemplateRequest & WithName(const char *value)
CreateTemplateRequest & AddTags(Tag &&value)
CreateTemplateRequest & WithTemplateId(Aws::String &&value)
CreateTemplateRequest & WithVersionDescription(const char *value)
CreateTemplateRequest & AddPermissions(ResourcePermission &&value)
CreateTemplateRequest & WithAwsAccountId(const char *value)
CreateTemplateRequest & WithName(const Aws::String &value)
CreateTemplateRequest & WithVersionDescription(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetValidationStrategy(const ValidationStrategy &value)
CreateTemplateRequest & WithValidationStrategy(ValidationStrategy &&value)
const TemplateVersionDefinition & GetDefinition() const
void SetDefinition(const TemplateVersionDefinition &value)
CreateTemplateRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTemplateRequest & WithDefinition(const TemplateVersionDefinition &value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateTemplateRequest & WithDefinition(TemplateVersionDefinition &&value)
CreateTemplateRequest & WithTemplateId(const char *value)
CreateTemplateRequest & AddTags(const Tag &value)
CreateTemplateRequest & WithName(Aws::String &&value)
CreateTemplateRequest & WithAwsAccountId(const Aws::String &value)
void SetSourceEntity(TemplateSourceEntity &&value)
CreateTemplateRequest & WithVersionDescription(const Aws::String &value)
CreateTemplateRequest & AddPermissions(const ResourcePermission &value)
CreateTemplateRequest & WithPermissions(const Aws::Vector< ResourcePermission > &value)
virtual const char * GetServiceRequestName() const override
void SetValidationStrategy(ValidationStrategy &&value)
CreateTemplateRequest & WithValidationStrategy(const ValidationStrategy &value)
CreateTemplateRequest & WithAwsAccountId(Aws::String &&value)
void SetPermissions(Aws::Vector< ResourcePermission > &&value)
void SetSourceEntity(const TemplateSourceEntity &value)
void SetPermissions(const Aws::Vector< ResourcePermission > &value)
CreateTemplateRequest & WithSourceEntity(TemplateSourceEntity &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector