AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWorkforceRequest.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/sagemaker/model/SourceIpConfig.h>
11#include <aws/sagemaker/model/OidcConfig.h>
12#include <aws/sagemaker/model/WorkforceVpcConfigRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API UpdateWorkforceRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkforce"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const Aws::String& GetWorkforceName() const{ return m_workforceName; }
48 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
49 inline void SetWorkforceName(const Aws::String& value) { m_workforceNameHasBeenSet = true; m_workforceName = value; }
50 inline void SetWorkforceName(Aws::String&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::move(value); }
51 inline void SetWorkforceName(const char* value) { m_workforceNameHasBeenSet = true; m_workforceName.assign(value); }
52 inline UpdateWorkforceRequest& WithWorkforceName(const Aws::String& value) { SetWorkforceName(value); return *this;}
53 inline UpdateWorkforceRequest& WithWorkforceName(Aws::String&& value) { SetWorkforceName(std::move(value)); return *this;}
54 inline UpdateWorkforceRequest& WithWorkforceName(const char* value) { SetWorkforceName(value); return *this;}
56
58
64 inline const SourceIpConfig& GetSourceIpConfig() const{ return m_sourceIpConfig; }
65 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
66 inline void SetSourceIpConfig(const SourceIpConfig& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = value; }
67 inline void SetSourceIpConfig(SourceIpConfig&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::move(value); }
68 inline UpdateWorkforceRequest& WithSourceIpConfig(const SourceIpConfig& value) { SetSourceIpConfig(value); return *this;}
69 inline UpdateWorkforceRequest& WithSourceIpConfig(SourceIpConfig&& value) { SetSourceIpConfig(std::move(value)); return *this;}
71
73
77 inline const OidcConfig& GetOidcConfig() const{ return m_oidcConfig; }
78 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
79 inline void SetOidcConfig(const OidcConfig& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = value; }
80 inline void SetOidcConfig(OidcConfig&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::move(value); }
81 inline UpdateWorkforceRequest& WithOidcConfig(const OidcConfig& value) { SetOidcConfig(value); return *this;}
82 inline UpdateWorkforceRequest& WithOidcConfig(OidcConfig&& value) { SetOidcConfig(std::move(value)); return *this;}
84
86
89 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const{ return m_workforceVpcConfig; }
90 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
91 inline void SetWorkforceVpcConfig(const WorkforceVpcConfigRequest& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = value; }
92 inline void SetWorkforceVpcConfig(WorkforceVpcConfigRequest&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::move(value); }
96 private:
97
98 Aws::String m_workforceName;
99 bool m_workforceNameHasBeenSet = false;
100
101 SourceIpConfig m_sourceIpConfig;
102 bool m_sourceIpConfigHasBeenSet = false;
103
104 OidcConfig m_oidcConfig;
105 bool m_oidcConfigHasBeenSet = false;
106
107 WorkforceVpcConfigRequest m_workforceVpcConfig;
108 bool m_workforceVpcConfigHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SageMaker
113} // namespace Aws
void SetWorkforceVpcConfig(const WorkforceVpcConfigRequest &value)
UpdateWorkforceRequest & WithWorkforceName(Aws::String &&value)
UpdateWorkforceRequest & WithWorkforceName(const Aws::String &value)
const WorkforceVpcConfigRequest & GetWorkforceVpcConfig() const
UpdateWorkforceRequest & WithWorkforceVpcConfig(const WorkforceVpcConfigRequest &value)
UpdateWorkforceRequest & WithOidcConfig(OidcConfig &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSourceIpConfig(const SourceIpConfig &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetWorkforceVpcConfig(WorkforceVpcConfigRequest &&value)
UpdateWorkforceRequest & WithWorkforceName(const char *value)
UpdateWorkforceRequest & WithWorkforceVpcConfig(WorkforceVpcConfigRequest &&value)
UpdateWorkforceRequest & WithSourceIpConfig(const SourceIpConfig &value)
UpdateWorkforceRequest & WithSourceIpConfig(SourceIpConfig &&value)
virtual const char * GetServiceRequestName() const override
UpdateWorkforceRequest & WithOidcConfig(const OidcConfig &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String