AWS SDK for C++  1.9.44
AWS SDK for C++
CreateTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace QuickSight
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateTemplate"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
44 
49  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
50 
55  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
56 
61  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
62 
67  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
68 
73  inline CreateTemplateRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
74 
79  inline CreateTemplateRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
80 
85  inline CreateTemplateRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
86 
87 
92  inline const Aws::String& GetTemplateId() const{ return m_templateId; }
93 
98  inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
99 
104  inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
105 
110  inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
111 
116  inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
117 
122  inline CreateTemplateRequest& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
123 
128  inline CreateTemplateRequest& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
129 
134  inline CreateTemplateRequest& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
135 
136 
140  inline const Aws::String& GetName() const{ return m_name; }
141 
145  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
146 
150  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
151 
155  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
156 
160  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
161 
165  inline CreateTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
166 
170  inline CreateTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
171 
175  inline CreateTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
176 
177 
181  inline const Aws::Vector<ResourcePermission>& GetPermissions() const{ return m_permissions; }
182 
186  inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
187 
191  inline void SetPermissions(const Aws::Vector<ResourcePermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
192 
196  inline void SetPermissions(Aws::Vector<ResourcePermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
197 
201  inline CreateTemplateRequest& WithPermissions(const Aws::Vector<ResourcePermission>& value) { SetPermissions(value); return *this;}
202 
206  inline CreateTemplateRequest& WithPermissions(Aws::Vector<ResourcePermission>&& value) { SetPermissions(std::move(value)); return *this;}
207 
211  inline CreateTemplateRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
212 
216  inline CreateTemplateRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
217 
218 
233  inline const TemplateSourceEntity& GetSourceEntity() const{ return m_sourceEntity; }
234 
249  inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
250 
265  inline void SetSourceEntity(const TemplateSourceEntity& value) { m_sourceEntityHasBeenSet = true; m_sourceEntity = value; }
266 
281  inline void SetSourceEntity(TemplateSourceEntity&& value) { m_sourceEntityHasBeenSet = true; m_sourceEntity = std::move(value); }
282 
297  inline CreateTemplateRequest& WithSourceEntity(const TemplateSourceEntity& value) { SetSourceEntity(value); return *this;}
298 
313  inline CreateTemplateRequest& WithSourceEntity(TemplateSourceEntity&& value) { SetSourceEntity(std::move(value)); return *this;}
314 
315 
320  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
321 
326  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
327 
332  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
333 
338  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
339 
344  inline CreateTemplateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
345 
350  inline CreateTemplateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
351 
356  inline CreateTemplateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
357 
362  inline CreateTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
363 
364 
372  inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
373 
381  inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
382 
390  inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
391 
399  inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
400 
408  inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
409 
417  inline CreateTemplateRequest& WithVersionDescription(const Aws::String& value) { SetVersionDescription(value); return *this;}
418 
426  inline CreateTemplateRequest& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
427 
435  inline CreateTemplateRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
436 
437  private:
438 
439  Aws::String m_awsAccountId;
440  bool m_awsAccountIdHasBeenSet;
441 
442  Aws::String m_templateId;
443  bool m_templateIdHasBeenSet;
444 
445  Aws::String m_name;
446  bool m_nameHasBeenSet;
447 
448  Aws::Vector<ResourcePermission> m_permissions;
449  bool m_permissionsHasBeenSet;
450 
451  TemplateSourceEntity m_sourceEntity;
452  bool m_sourceEntityHasBeenSet;
453 
454  Aws::Vector<Tag> m_tags;
455  bool m_tagsHasBeenSet;
456 
457  Aws::String m_versionDescription;
458  bool m_versionDescriptionHasBeenSet;
459  };
460 
461 } // namespace Model
462 } // namespace QuickSight
463 } // namespace Aws
Aws::QuickSight::Model::CreateTemplateRequest::WithName
CreateTemplateRequest & WithName(Aws::String &&value)
Definition: CreateTemplateRequest.h:170
Aws::QuickSight::Model::CreateTemplateRequest::SourceEntityHasBeenSet
bool SourceEntityHasBeenSet() const
Definition: CreateTemplateRequest.h:249
Aws::QuickSight::Model::CreateTemplateRequest::WithVersionDescription
CreateTemplateRequest & WithVersionDescription(const Aws::String &value)
Definition: CreateTemplateRequest.h:417
Tag.h
Aws::QuickSight::Model::CreateTemplateRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateTemplateRequest.h:155
QuickSight_EXPORTS.h
Aws::QuickSight::Model::CreateTemplateRequest::GetVersionDescription
const Aws::String & GetVersionDescription() const
Definition: CreateTemplateRequest.h:372
Aws::QuickSight::Model::CreateTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::CreateTemplateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateTemplateRequest.h:320
Aws::QuickSight::Model::CreateTemplateRequest::PermissionsHasBeenSet
bool PermissionsHasBeenSet() const
Definition: CreateTemplateRequest.h:186
Aws::QuickSight::Model::CreateTemplateRequest::AddPermissions
CreateTemplateRequest & AddPermissions(ResourcePermission &&value)
Definition: CreateTemplateRequest.h:216
Aws::QuickSight::Model::CreateTemplateRequest::SetName
void SetName(const char *value)
Definition: CreateTemplateRequest.h:160
Aws::QuickSight::Model::CreateTemplateRequest::SetVersionDescription
void SetVersionDescription(const Aws::String &value)
Definition: CreateTemplateRequest.h:390
Aws::QuickSight::Model::CreateTemplateRequest::WithTemplateId
CreateTemplateRequest & WithTemplateId(Aws::String &&value)
Definition: CreateTemplateRequest.h:128
Aws::QuickSight::Model::Tag
Definition: Tag.h:33
Aws::QuickSight::Model::CreateTemplateRequest::WithPermissions
CreateTemplateRequest & WithPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: CreateTemplateRequest.h:206
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::CreateTemplateRequest::AddTags
CreateTemplateRequest & AddTags(Tag &&value)
Definition: CreateTemplateRequest.h:362
Aws::QuickSight::Model::CreateTemplateRequest::GetTemplateId
const Aws::String & GetTemplateId() const
Definition: CreateTemplateRequest.h:92
AWSVector.h
Aws::QuickSight::Model::CreateTemplateRequest::SetTemplateId
void SetTemplateId(Aws::String &&value)
Definition: CreateTemplateRequest.h:110
TemplateSourceEntity.h
Aws::QuickSight::Model::CreateTemplateRequest::VersionDescriptionHasBeenSet
bool VersionDescriptionHasBeenSet() const
Definition: CreateTemplateRequest.h:381
Aws::QuickSight::Model::CreateTemplateRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateTemplateRequest.h:150
Aws::QuickSight::Model::CreateTemplateRequest::SetSourceEntity
void SetSourceEntity(TemplateSourceEntity &&value)
Definition: CreateTemplateRequest.h:281
Aws::QuickSight::Model::CreateTemplateRequest::SetVersionDescription
void SetVersionDescription(Aws::String &&value)
Definition: CreateTemplateRequest.h:399
QuickSightRequest.h
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::CreateTemplateRequest::GetSourceEntity
const TemplateSourceEntity & GetSourceEntity() const
Definition: CreateTemplateRequest.h:233
Aws::QuickSight::Model::CreateTemplateRequest::WithName
CreateTemplateRequest & WithName(const Aws::String &value)
Definition: CreateTemplateRequest.h:165
Aws::QuickSight::Model::CreateTemplateRequest::CreateTemplateRequest
CreateTemplateRequest()
Aws::QuickSight::Model::CreateTemplateRequest::SetPermissions
void SetPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: CreateTemplateRequest.h:191
Aws::QuickSight::Model::CreateTemplateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateTemplateRequest.h:332
ResourcePermission.h
Aws::QuickSight::Model::CreateTemplateRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: CreateTemplateRequest.h:61
AWSString.h
Aws::QuickSight::Model::CreateTemplateRequest
Definition: CreateTemplateRequest.h:26
Aws::QuickSight::Model::CreateTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTemplateRequest.h:34
Aws::QuickSight::Model::CreateTemplateRequest::SetTemplateId
void SetTemplateId(const Aws::String &value)
Definition: CreateTemplateRequest.h:104
Aws::QuickSight::Model::CreateTemplateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateTemplateRequest.h:338
Aws::QuickSight::Model::CreateTemplateRequest::WithAwsAccountId
CreateTemplateRequest & WithAwsAccountId(const char *value)
Definition: CreateTemplateRequest.h:85
Aws::QuickSight::Model::CreateTemplateRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: CreateTemplateRequest.h:49
Aws::QuickSight::Model::CreateTemplateRequest::WithVersionDescription
CreateTemplateRequest & WithVersionDescription(const char *value)
Definition: CreateTemplateRequest.h:435
Aws::QuickSight::Model::CreateTemplateRequest::WithTags
CreateTemplateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateTemplateRequest.h:344
Aws::QuickSight::Model::CreateTemplateRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: CreateTemplateRequest.h:43
Aws::QuickSight::Model::TemplateSourceEntity
Definition: TemplateSourceEntity.h:33
Aws::QuickSight::Model::CreateTemplateRequest::WithTemplateId
CreateTemplateRequest & WithTemplateId(const Aws::String &value)
Definition: CreateTemplateRequest.h:122
Aws::QuickSight::Model::CreateTemplateRequest::SetPermissions
void SetPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: CreateTemplateRequest.h:196
Aws::QuickSight::Model::CreateTemplateRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: CreateTemplateRequest.h:67
Aws::QuickSight::Model::CreateTemplateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTemplateRequest.h:326
Aws::QuickSight::Model::CreateTemplateRequest::WithVersionDescription
CreateTemplateRequest & WithVersionDescription(Aws::String &&value)
Definition: CreateTemplateRequest.h:426
Aws::QuickSight::Model::CreateTemplateRequest::WithSourceEntity
CreateTemplateRequest & WithSourceEntity(const TemplateSourceEntity &value)
Definition: CreateTemplateRequest.h:297
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws::QuickSight::Model::CreateTemplateRequest::WithAwsAccountId
CreateTemplateRequest & WithAwsAccountId(Aws::String &&value)
Definition: CreateTemplateRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::CreateTemplateRequest::WithTags
CreateTemplateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateTemplateRequest.h:350
Aws::QuickSight::Model::CreateTemplateRequest::WithName
CreateTemplateRequest & WithName(const char *value)
Definition: CreateTemplateRequest.h:175
Aws::QuickSight::Model::CreateTemplateRequest::AddPermissions
CreateTemplateRequest & AddPermissions(const ResourcePermission &value)
Definition: CreateTemplateRequest.h:211
Aws::QuickSight::Model::CreateTemplateRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateTemplateRequest.h:145
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::CreateTemplateRequest::WithTemplateId
CreateTemplateRequest & WithTemplateId(const char *value)
Definition: CreateTemplateRequest.h:134
Aws::QuickSight::Model::CreateTemplateRequest::GetPermissions
const Aws::Vector< ResourcePermission > & GetPermissions() const
Definition: CreateTemplateRequest.h:181
Aws::QuickSight::Model::CreateTemplateRequest::WithSourceEntity
CreateTemplateRequest & WithSourceEntity(TemplateSourceEntity &&value)
Definition: CreateTemplateRequest.h:313
Aws::QuickSight::Model::CreateTemplateRequest::WithAwsAccountId
CreateTemplateRequest & WithAwsAccountId(const Aws::String &value)
Definition: CreateTemplateRequest.h:73
Aws::QuickSight::Model::CreateTemplateRequest::SetTemplateId
void SetTemplateId(const char *value)
Definition: CreateTemplateRequest.h:116
Aws::QuickSight::Model::CreateTemplateRequest::AddTags
CreateTemplateRequest & AddTags(const Tag &value)
Definition: CreateTemplateRequest.h:356
Aws::QuickSight::Model::CreateTemplateRequest::WithPermissions
CreateTemplateRequest & WithPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: CreateTemplateRequest.h:201
Aws::QuickSight::Model::CreateTemplateRequest::SetVersionDescription
void SetVersionDescription(const char *value)
Definition: CreateTemplateRequest.h:408
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::CreateTemplateRequest::TemplateIdHasBeenSet
bool TemplateIdHasBeenSet() const
Definition: CreateTemplateRequest.h:98
Aws::QuickSight::Model::CreateTemplateRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: CreateTemplateRequest.h:55
Aws::QuickSight::Model::CreateTemplateRequest::SetSourceEntity
void SetSourceEntity(const TemplateSourceEntity &value)
Definition: CreateTemplateRequest.h:265
Aws::QuickSight::Model::CreateTemplateRequest::GetName
const Aws::String & GetName() const
Definition: CreateTemplateRequest.h:140