AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateWorkforceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/CognitoConfig.h>
12#include <aws/sagemaker/model/OidcConfig.h>
13#include <aws/sagemaker/model/SourceIpConfig.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/WorkforceIpAddressType.h>
16#include <aws/sagemaker/model/WorkforceVpcConfigRequest.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SageMaker {
22namespace Model {
23
27 public:
28 AWS_SAGEMAKER_API CreateWorkforceRequest() = default;
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 "CreateWorkforce"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
41
48 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
49 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
50 template <typename CognitoConfigT = CognitoConfig>
51 void SetCognitoConfig(CognitoConfigT&& value) {
52 m_cognitoConfigHasBeenSet = true;
53 m_cognitoConfig = std::forward<CognitoConfigT>(value);
54 }
55 template <typename CognitoConfigT = CognitoConfig>
56 CreateWorkforceRequest& WithCognitoConfig(CognitoConfigT&& value) {
57 SetCognitoConfig(std::forward<CognitoConfigT>(value));
58 return *this;
59 }
61
63
68 inline const OidcConfig& GetOidcConfig() const { return m_oidcConfig; }
69 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
70 template <typename OidcConfigT = OidcConfig>
71 void SetOidcConfig(OidcConfigT&& value) {
72 m_oidcConfigHasBeenSet = true;
73 m_oidcConfig = std::forward<OidcConfigT>(value);
74 }
75 template <typename OidcConfigT = OidcConfig>
76 CreateWorkforceRequest& WithOidcConfig(OidcConfigT&& value) {
77 SetOidcConfig(std::forward<OidcConfigT>(value));
78 return *this;
79 }
81
83
84 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
85 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
86 template <typename SourceIpConfigT = SourceIpConfig>
87 void SetSourceIpConfig(SourceIpConfigT&& value) {
88 m_sourceIpConfigHasBeenSet = true;
89 m_sourceIpConfig = std::forward<SourceIpConfigT>(value);
90 }
91 template <typename SourceIpConfigT = SourceIpConfig>
92 CreateWorkforceRequest& WithSourceIpConfig(SourceIpConfigT&& value) {
93 SetSourceIpConfig(std::forward<SourceIpConfigT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
103 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
104 template <typename WorkforceNameT = Aws::String>
105 void SetWorkforceName(WorkforceNameT&& value) {
106 m_workforceNameHasBeenSet = true;
107 m_workforceName = std::forward<WorkforceNameT>(value);
108 }
109 template <typename WorkforceNameT = Aws::String>
110 CreateWorkforceRequest& WithWorkforceName(WorkforceNameT&& value) {
111 SetWorkforceName(std::forward<WorkforceNameT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template <typename TagsT = Aws::Vector<Tag>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Vector<Tag>>
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsT = Tag>
136 m_tagsHasBeenSet = true;
137 m_tags.emplace_back(std::forward<TagsT>(value));
138 return *this;
139 }
141
143
146 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
147 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
148 template <typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
149 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) {
150 m_workforceVpcConfigHasBeenSet = true;
151 m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value);
152 }
153 template <typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
154 CreateWorkforceRequest& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) {
155 SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value));
156 return *this;
157 }
159
161
166 inline WorkforceIpAddressType GetIpAddressType() const { return m_ipAddressType; }
167 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
169 m_ipAddressTypeHasBeenSet = true;
170 m_ipAddressType = value;
171 }
173 SetIpAddressType(value);
174 return *this;
175 }
177 private:
178 CognitoConfig m_cognitoConfig;
179
180 OidcConfig m_oidcConfig;
181
182 SourceIpConfig m_sourceIpConfig;
183
184 Aws::String m_workforceName;
185
186 Aws::Vector<Tag> m_tags;
187
188 WorkforceVpcConfigRequest m_workforceVpcConfig;
189
191 bool m_cognitoConfigHasBeenSet = false;
192 bool m_oidcConfigHasBeenSet = false;
193 bool m_sourceIpConfigHasBeenSet = false;
194 bool m_workforceNameHasBeenSet = false;
195 bool m_tagsHasBeenSet = false;
196 bool m_workforceVpcConfigHasBeenSet = false;
197 bool m_ipAddressTypeHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace SageMaker
202} // namespace Aws
AWS_SAGEMAKER_API CreateWorkforceRequest()=default
CreateWorkforceRequest & AddTags(TagsT &&value)
CreateWorkforceRequest & WithOidcConfig(OidcConfigT &&value)
void SetWorkforceVpcConfig(WorkforceVpcConfigT &&value)
CreateWorkforceRequest & WithWorkforceName(WorkforceNameT &&value)
CreateWorkforceRequest & WithCognitoConfig(CognitoConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkforceRequest & WithIpAddressType(WorkforceIpAddressType value)
CreateWorkforceRequest & WithWorkforceVpcConfig(WorkforceVpcConfigT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateWorkforceRequest & WithSourceIpConfig(SourceIpConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const WorkforceVpcConfigRequest & GetWorkforceVpcConfig() const
CreateWorkforceRequest & WithTags(TagsT &&value)
void SetIpAddressType(WorkforceIpAddressType 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