AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename WorkforceNameT = Aws::String>
50 void SetWorkforceName(WorkforceNameT&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::forward<WorkforceNameT>(value); }
51 template<typename WorkforceNameT = Aws::String>
52 UpdateWorkforceRequest& WithWorkforceName(WorkforceNameT&& value) { SetWorkforceName(std::forward<WorkforceNameT>(value)); return *this;}
54
56
62 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
63 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
64 template<typename SourceIpConfigT = SourceIpConfig>
65 void SetSourceIpConfig(SourceIpConfigT&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::forward<SourceIpConfigT>(value); }
66 template<typename SourceIpConfigT = SourceIpConfig>
67 UpdateWorkforceRequest& WithSourceIpConfig(SourceIpConfigT&& value) { SetSourceIpConfig(std::forward<SourceIpConfigT>(value)); return *this;}
69
71
75 inline const OidcConfig& GetOidcConfig() const { return m_oidcConfig; }
76 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
77 template<typename OidcConfigT = OidcConfig>
78 void SetOidcConfig(OidcConfigT&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::forward<OidcConfigT>(value); }
79 template<typename OidcConfigT = OidcConfig>
80 UpdateWorkforceRequest& WithOidcConfig(OidcConfigT&& value) { SetOidcConfig(std::forward<OidcConfigT>(value)); return *this;}
82
84
87 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
88 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
89 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
90 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value); }
91 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
92 UpdateWorkforceRequest& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) { SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value)); return *this;}
94 private:
95
96 Aws::String m_workforceName;
97 bool m_workforceNameHasBeenSet = false;
98
99 SourceIpConfig m_sourceIpConfig;
100 bool m_sourceIpConfigHasBeenSet = false;
101
102 OidcConfig m_oidcConfig;
103 bool m_oidcConfigHasBeenSet = false;
104
105 WorkforceVpcConfigRequest m_workforceVpcConfig;
106 bool m_workforceVpcConfigHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SageMaker
111} // namespace Aws
AWS_SAGEMAKER_API UpdateWorkforceRequest()=default
const WorkforceVpcConfigRequest & GetWorkforceVpcConfig() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetWorkforceVpcConfig(WorkforceVpcConfigT &&value)
UpdateWorkforceRequest & WithSourceIpConfig(SourceIpConfigT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateWorkforceRequest & WithWorkforceVpcConfig(WorkforceVpcConfigT &&value)
UpdateWorkforceRequest & WithWorkforceName(WorkforceNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateWorkforceRequest & WithOidcConfig(OidcConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String