AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWorkforceRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/model/CognitoConfig.h>
10#include <aws/sagemaker/model/OidcConfig.h>
11#include <aws/sagemaker/model/SourceIpConfig.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/WorkforceVpcConfigRequest.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAGEMAKER_API CreateWorkforceRequest() = default;
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 "CreateWorkforce"; }
37
38 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
51 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
52 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
53 template<typename CognitoConfigT = CognitoConfig>
54 void SetCognitoConfig(CognitoConfigT&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::forward<CognitoConfigT>(value); }
55 template<typename CognitoConfigT = CognitoConfig>
56 CreateWorkforceRequest& WithCognitoConfig(CognitoConfigT&& value) { SetCognitoConfig(std::forward<CognitoConfigT>(value)); return *this;}
58
60
65 inline const OidcConfig& GetOidcConfig() const { return m_oidcConfig; }
66 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
67 template<typename OidcConfigT = OidcConfig>
68 void SetOidcConfig(OidcConfigT&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::forward<OidcConfigT>(value); }
69 template<typename OidcConfigT = OidcConfig>
70 CreateWorkforceRequest& WithOidcConfig(OidcConfigT&& value) { SetOidcConfig(std::forward<OidcConfigT>(value)); return *this;}
72
74
75 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
76 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
77 template<typename SourceIpConfigT = SourceIpConfig>
78 void SetSourceIpConfig(SourceIpConfigT&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::forward<SourceIpConfigT>(value); }
79 template<typename SourceIpConfigT = SourceIpConfig>
80 CreateWorkforceRequest& WithSourceIpConfig(SourceIpConfigT&& value) { SetSourceIpConfig(std::forward<SourceIpConfigT>(value)); return *this;}
82
84
87 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
88 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
89 template<typename WorkforceNameT = Aws::String>
90 void SetWorkforceName(WorkforceNameT&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::forward<WorkforceNameT>(value); }
91 template<typename WorkforceNameT = Aws::String>
92 CreateWorkforceRequest& WithWorkforceName(WorkforceNameT&& value) { SetWorkforceName(std::forward<WorkforceNameT>(value)); return *this;}
94
96
101 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Vector<Tag>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Vector<Tag>>
106 CreateWorkforceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsT = Tag>
108 CreateWorkforceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
110
112
115 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
116 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
117 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
118 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value); }
119 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
120 CreateWorkforceRequest& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) { SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value)); return *this;}
122 private:
123
124 CognitoConfig m_cognitoConfig;
125 bool m_cognitoConfigHasBeenSet = false;
126
127 OidcConfig m_oidcConfig;
128 bool m_oidcConfigHasBeenSet = false;
129
130 SourceIpConfig m_sourceIpConfig;
131 bool m_sourceIpConfigHasBeenSet = false;
132
133 Aws::String m_workforceName;
134 bool m_workforceNameHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138
139 WorkforceVpcConfigRequest m_workforceVpcConfig;
140 bool m_workforceVpcConfigHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace SageMaker
145} // 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 & 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)
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