AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkteamRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/NotificationConfiguration.h>
12#include <aws/sagemaker/model/WorkerAccessConfiguration.h>
13#include <aws/sagemaker/model/MemberDefinition.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API CreateWorkteamRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkteam"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetWorkteamName() const{ return m_workteamName; }
47 inline bool WorkteamNameHasBeenSet() const { return m_workteamNameHasBeenSet; }
48 inline void SetWorkteamName(const Aws::String& value) { m_workteamNameHasBeenSet = true; m_workteamName = value; }
49 inline void SetWorkteamName(Aws::String&& value) { m_workteamNameHasBeenSet = true; m_workteamName = std::move(value); }
50 inline void SetWorkteamName(const char* value) { m_workteamNameHasBeenSet = true; m_workteamName.assign(value); }
51 inline CreateWorkteamRequest& WithWorkteamName(const Aws::String& value) { SetWorkteamName(value); return *this;}
52 inline CreateWorkteamRequest& WithWorkteamName(Aws::String&& value) { SetWorkteamName(std::move(value)); return *this;}
53 inline CreateWorkteamRequest& WithWorkteamName(const char* value) { SetWorkteamName(value); return *this;}
55
57
60 inline const Aws::String& GetWorkforceName() const{ return m_workforceName; }
61 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
62 inline void SetWorkforceName(const Aws::String& value) { m_workforceNameHasBeenSet = true; m_workforceName = value; }
63 inline void SetWorkforceName(Aws::String&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::move(value); }
64 inline void SetWorkforceName(const char* value) { m_workforceNameHasBeenSet = true; m_workforceName.assign(value); }
65 inline CreateWorkteamRequest& WithWorkforceName(const Aws::String& value) { SetWorkforceName(value); return *this;}
66 inline CreateWorkteamRequest& WithWorkforceName(Aws::String&& value) { SetWorkforceName(std::move(value)); return *this;}
67 inline CreateWorkteamRequest& WithWorkforceName(const char* value) { SetWorkforceName(value); return *this;}
69
71
92 inline const Aws::Vector<MemberDefinition>& GetMemberDefinitions() const{ return m_memberDefinitions; }
93 inline bool MemberDefinitionsHasBeenSet() const { return m_memberDefinitionsHasBeenSet; }
94 inline void SetMemberDefinitions(const Aws::Vector<MemberDefinition>& value) { m_memberDefinitionsHasBeenSet = true; m_memberDefinitions = value; }
95 inline void SetMemberDefinitions(Aws::Vector<MemberDefinition>&& value) { m_memberDefinitionsHasBeenSet = true; m_memberDefinitions = std::move(value); }
98 inline CreateWorkteamRequest& AddMemberDefinitions(const MemberDefinition& value) { m_memberDefinitionsHasBeenSet = true; m_memberDefinitions.push_back(value); return *this; }
99 inline CreateWorkteamRequest& AddMemberDefinitions(MemberDefinition&& value) { m_memberDefinitionsHasBeenSet = true; m_memberDefinitions.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
111 inline CreateWorkteamRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 inline CreateWorkteamRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 inline CreateWorkteamRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115
117
121 inline const NotificationConfiguration& GetNotificationConfiguration() const{ return m_notificationConfiguration; }
122 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
123 inline void SetNotificationConfiguration(const NotificationConfiguration& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = value; }
124 inline void SetNotificationConfiguration(NotificationConfiguration&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::move(value); }
128
130
135 inline const WorkerAccessConfiguration& GetWorkerAccessConfiguration() const{ return m_workerAccessConfiguration; }
136 inline bool WorkerAccessConfigurationHasBeenSet() const { return m_workerAccessConfigurationHasBeenSet; }
137 inline void SetWorkerAccessConfiguration(const WorkerAccessConfiguration& value) { m_workerAccessConfigurationHasBeenSet = true; m_workerAccessConfiguration = value; }
138 inline void SetWorkerAccessConfiguration(WorkerAccessConfiguration&& value) { m_workerAccessConfigurationHasBeenSet = true; m_workerAccessConfiguration = std::move(value); }
142
144
152 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
155 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
156 inline CreateWorkteamRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
157 inline CreateWorkteamRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
158 inline CreateWorkteamRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
159 inline CreateWorkteamRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
161 private:
162
163 Aws::String m_workteamName;
164 bool m_workteamNameHasBeenSet = false;
165
166 Aws::String m_workforceName;
167 bool m_workforceNameHasBeenSet = false;
168
169 Aws::Vector<MemberDefinition> m_memberDefinitions;
170 bool m_memberDefinitionsHasBeenSet = false;
171
172 Aws::String m_description;
173 bool m_descriptionHasBeenSet = false;
174
175 NotificationConfiguration m_notificationConfiguration;
176 bool m_notificationConfigurationHasBeenSet = false;
177
178 WorkerAccessConfiguration m_workerAccessConfiguration;
179 bool m_workerAccessConfigurationHasBeenSet = false;
180
181 Aws::Vector<Tag> m_tags;
182 bool m_tagsHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace SageMaker
187} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
CreateWorkteamRequest & WithWorkforceName(Aws::String &&value)
CreateWorkteamRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWorkteamRequest & AddTags(const Tag &value)
CreateWorkteamRequest & WithDescription(const Aws::String &value)
const NotificationConfiguration & GetNotificationConfiguration() const
CreateWorkteamRequest & WithNotificationConfiguration(const NotificationConfiguration &value)
virtual const char * GetServiceRequestName() const override
void SetMemberDefinitions(Aws::Vector< MemberDefinition > &&value)
CreateWorkteamRequest & WithWorkerAccessConfiguration(const WorkerAccessConfiguration &value)
CreateWorkteamRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const WorkerAccessConfiguration & GetWorkerAccessConfiguration() const
CreateWorkteamRequest & WithWorkforceName(const Aws::String &value)
CreateWorkteamRequest & WithWorkteamName(const char *value)
CreateWorkteamRequest & AddTags(Tag &&value)
void SetWorkerAccessConfiguration(WorkerAccessConfiguration &&value)
const Aws::Vector< MemberDefinition > & GetMemberDefinitions() const
void SetNotificationConfiguration(const NotificationConfiguration &value)
CreateWorkteamRequest & WithWorkteamName(const Aws::String &value)
CreateWorkteamRequest & WithDescription(const char *value)
CreateWorkteamRequest & WithDescription(Aws::String &&value)
CreateWorkteamRequest & WithMemberDefinitions(const Aws::Vector< MemberDefinition > &value)
CreateWorkteamRequest & WithMemberDefinitions(Aws::Vector< MemberDefinition > &&value)
void SetNotificationConfiguration(NotificationConfiguration &&value)
void SetWorkerAccessConfiguration(const WorkerAccessConfiguration &value)
void SetMemberDefinitions(const Aws::Vector< MemberDefinition > &value)
CreateWorkteamRequest & AddMemberDefinitions(const MemberDefinition &value)
CreateWorkteamRequest & AddMemberDefinitions(MemberDefinition &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateWorkteamRequest & WithNotificationConfiguration(NotificationConfiguration &&value)
CreateWorkteamRequest & WithWorkerAccessConfiguration(WorkerAccessConfiguration &&value)
CreateWorkteamRequest & WithWorkteamName(Aws::String &&value)
CreateWorkteamRequest & WithWorkforceName(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