AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/WorkforceIpAddressType.h>
16#include <aws/sagemaker/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SageMaker
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SAGEMAKER_API CreateWorkforceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkforce"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
43
45
52 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
53 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
54 template<typename CognitoConfigT = CognitoConfig>
55 void SetCognitoConfig(CognitoConfigT&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::forward<CognitoConfigT>(value); }
56 template<typename CognitoConfigT = CognitoConfig>
57 CreateWorkforceRequest& WithCognitoConfig(CognitoConfigT&& value) { SetCognitoConfig(std::forward<CognitoConfigT>(value)); return *this;}
59
61
66 inline const OidcConfig& GetOidcConfig() const { return m_oidcConfig; }
67 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
68 template<typename OidcConfigT = OidcConfig>
69 void SetOidcConfig(OidcConfigT&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::forward<OidcConfigT>(value); }
70 template<typename OidcConfigT = OidcConfig>
71 CreateWorkforceRequest& WithOidcConfig(OidcConfigT&& value) { SetOidcConfig(std::forward<OidcConfigT>(value)); return *this;}
73
75
76 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
77 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
78 template<typename SourceIpConfigT = SourceIpConfig>
79 void SetSourceIpConfig(SourceIpConfigT&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::forward<SourceIpConfigT>(value); }
80 template<typename SourceIpConfigT = SourceIpConfig>
81 CreateWorkforceRequest& WithSourceIpConfig(SourceIpConfigT&& value) { SetSourceIpConfig(std::forward<SourceIpConfigT>(value)); return *this;}
83
85
88 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
89 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
90 template<typename WorkforceNameT = Aws::String>
91 void SetWorkforceName(WorkforceNameT&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::forward<WorkforceNameT>(value); }
92 template<typename WorkforceNameT = Aws::String>
93 CreateWorkforceRequest& WithWorkforceName(WorkforceNameT&& value) { SetWorkforceName(std::forward<WorkforceNameT>(value)); return *this;}
95
97
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template<typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
106 template<typename TagsT = Aws::Vector<Tag>>
107 CreateWorkforceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
108 template<typename TagsT = Tag>
109 CreateWorkforceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
111
113
116 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
117 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
118 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
119 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value); }
120 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
121 CreateWorkforceRequest& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) { SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value)); return *this;}
123
125
130 inline WorkforceIpAddressType GetIpAddressType() const { return m_ipAddressType; }
131 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
132 inline void SetIpAddressType(WorkforceIpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
135 private:
136
137 CognitoConfig m_cognitoConfig;
138 bool m_cognitoConfigHasBeenSet = false;
139
140 OidcConfig m_oidcConfig;
141 bool m_oidcConfigHasBeenSet = false;
142
143 SourceIpConfig m_sourceIpConfig;
144 bool m_sourceIpConfigHasBeenSet = false;
145
146 Aws::String m_workforceName;
147 bool m_workforceNameHasBeenSet = false;
148
149 Aws::Vector<Tag> m_tags;
150 bool m_tagsHasBeenSet = false;
151
152 WorkforceVpcConfigRequest m_workforceVpcConfig;
153 bool m_workforceVpcConfigHasBeenSet = false;
154
156 bool m_ipAddressTypeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SageMaker
161} // 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