AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCognitoConfig(const CognitoConfig& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = value; }
54 inline void SetCognitoConfig(CognitoConfig&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::move(value); }
55 inline CreateWorkforceRequest& WithCognitoConfig(const CognitoConfig& value) { SetCognitoConfig(value); return *this;}
56 inline CreateWorkforceRequest& WithCognitoConfig(CognitoConfig&& value) { SetCognitoConfig(std::move(value)); return *this;}
58
60
65 inline const OidcConfig& GetOidcConfig() const{ return m_oidcConfig; }
66 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
67 inline void SetOidcConfig(const OidcConfig& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = value; }
68 inline void SetOidcConfig(OidcConfig&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::move(value); }
69 inline CreateWorkforceRequest& WithOidcConfig(const OidcConfig& value) { SetOidcConfig(value); return *this;}
70 inline CreateWorkforceRequest& WithOidcConfig(OidcConfig&& value) { SetOidcConfig(std::move(value)); return *this;}
72
74
75 inline const SourceIpConfig& GetSourceIpConfig() const{ return m_sourceIpConfig; }
76 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
77 inline void SetSourceIpConfig(const SourceIpConfig& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = value; }
78 inline void SetSourceIpConfig(SourceIpConfig&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::move(value); }
79 inline CreateWorkforceRequest& WithSourceIpConfig(const SourceIpConfig& value) { SetSourceIpConfig(value); return *this;}
80 inline CreateWorkforceRequest& WithSourceIpConfig(SourceIpConfig&& value) { SetSourceIpConfig(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetWorkforceName() const{ return m_workforceName; }
88 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
89 inline void SetWorkforceName(const Aws::String& value) { m_workforceNameHasBeenSet = true; m_workforceName = value; }
90 inline void SetWorkforceName(Aws::String&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::move(value); }
91 inline void SetWorkforceName(const char* value) { m_workforceNameHasBeenSet = true; m_workforceName.assign(value); }
92 inline CreateWorkforceRequest& WithWorkforceName(const Aws::String& value) { SetWorkforceName(value); return *this;}
93 inline CreateWorkforceRequest& WithWorkforceName(Aws::String&& value) { SetWorkforceName(std::move(value)); return *this;}
94 inline CreateWorkforceRequest& WithWorkforceName(const char* value) { SetWorkforceName(value); return *this;}
96
98
103 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline CreateWorkforceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
108 inline CreateWorkforceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
109 inline CreateWorkforceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
110 inline CreateWorkforceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
112
114
117 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const{ return m_workforceVpcConfig; }
118 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
119 inline void SetWorkforceVpcConfig(const WorkforceVpcConfigRequest& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = value; }
120 inline void SetWorkforceVpcConfig(WorkforceVpcConfigRequest&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::move(value); }
124 private:
125
126 CognitoConfig m_cognitoConfig;
127 bool m_cognitoConfigHasBeenSet = false;
128
129 OidcConfig m_oidcConfig;
130 bool m_oidcConfigHasBeenSet = false;
131
132 SourceIpConfig m_sourceIpConfig;
133 bool m_sourceIpConfigHasBeenSet = false;
134
135 Aws::String m_workforceName;
136 bool m_workforceNameHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140
141 WorkforceVpcConfigRequest m_workforceVpcConfig;
142 bool m_workforceVpcConfigHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SageMaker
147} // namespace Aws
CreateWorkforceRequest & WithWorkforceName(Aws::String &&value)
CreateWorkforceRequest & WithWorkforceVpcConfig(const WorkforceVpcConfigRequest &value)
CreateWorkforceRequest & WithWorkforceVpcConfig(WorkforceVpcConfigRequest &&value)
CreateWorkforceRequest & WithSourceIpConfig(const SourceIpConfig &value)
CreateWorkforceRequest & WithWorkforceName(const char *value)
CreateWorkforceRequest & WithCognitoConfig(const CognitoConfig &value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateWorkforceRequest & WithOidcConfig(OidcConfig &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateWorkforceRequest & WithSourceIpConfig(SourceIpConfig &&value)
void SetSourceIpConfig(const SourceIpConfig &value)
CreateWorkforceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWorkforceRequest & WithOidcConfig(const OidcConfig &value)
CreateWorkforceRequest & WithWorkforceName(const Aws::String &value)
CreateWorkforceRequest & WithCognitoConfig(CognitoConfig &&value)
CreateWorkforceRequest & AddTags(Tag &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkforceRequest & AddTags(const Tag &value)
const WorkforceVpcConfigRequest & GetWorkforceVpcConfig() const
void SetWorkforceVpcConfig(WorkforceVpcConfigRequest &&value)
void SetCognitoConfig(const CognitoConfig &value)
void SetWorkforceVpcConfig(const WorkforceVpcConfigRequest &value)
CreateWorkforceRequest & WithTags(const Aws::Vector< Tag > &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