AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDatasetGroupRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/model/Domain.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/personalize/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Personalize
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PERSONALIZE_API CreateDatasetGroupRequest();
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 "CreateDatasetGroup"; }
34
35 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
36
37 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateDatasetGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateDatasetGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateDatasetGroupRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
60 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
61 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
62 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
63 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
64 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 inline CreateDatasetGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
66 inline CreateDatasetGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
67 inline CreateDatasetGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
69
71
75 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
76 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
77 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
78 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
79 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
80 inline CreateDatasetGroupRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
81 inline CreateDatasetGroupRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
82 inline CreateDatasetGroupRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
84
86
93 inline const Domain& GetDomain() const{ return m_domain; }
94 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
95 inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
96 inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
97 inline CreateDatasetGroupRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
98 inline CreateDatasetGroupRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
100
102
107 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
111 inline CreateDatasetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
112 inline CreateDatasetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
113 inline CreateDatasetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 inline CreateDatasetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_roleArn;
122 bool m_roleArnHasBeenSet = false;
123
124 Aws::String m_kmsKeyArn;
125 bool m_kmsKeyArnHasBeenSet = false;
126
127 Domain m_domain;
128 bool m_domainHasBeenSet = false;
129
130 Aws::Vector<Tag> m_tags;
131 bool m_tagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Personalize
136} // namespace Aws
CreateDatasetGroupRequest & WithRoleArn(const char *value)
CreateDatasetGroupRequest & WithKmsKeyArn(const Aws::String &value)
CreateDatasetGroupRequest & WithName(Aws::String &&value)
CreateDatasetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDatasetGroupRequest & WithRoleArn(Aws::String &&value)
CreateDatasetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDatasetGroupRequest & WithKmsKeyArn(Aws::String &&value)
CreateDatasetGroupRequest & WithName(const Aws::String &value)
CreateDatasetGroupRequest & WithDomain(Domain &&value)
CreateDatasetGroupRequest & WithKmsKeyArn(const char *value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatasetGroupRequest & WithRoleArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateDatasetGroupRequest & WithDomain(const Domain &value)
CreateDatasetGroupRequest & AddTags(const Tag &value)
CreateDatasetGroupRequest & WithName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector