AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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 <aws/sagemaker/model/WorkforceIpAddressType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API UpdateWorkforceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkforce"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
48 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
49 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
50 template<typename WorkforceNameT = Aws::String>
51 void SetWorkforceName(WorkforceNameT&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::forward<WorkforceNameT>(value); }
52 template<typename WorkforceNameT = Aws::String>
53 UpdateWorkforceRequest& WithWorkforceName(WorkforceNameT&& value) { SetWorkforceName(std::forward<WorkforceNameT>(value)); return *this;}
55
57
63 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
64 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
65 template<typename SourceIpConfigT = SourceIpConfig>
66 void SetSourceIpConfig(SourceIpConfigT&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::forward<SourceIpConfigT>(value); }
67 template<typename SourceIpConfigT = SourceIpConfig>
68 UpdateWorkforceRequest& WithSourceIpConfig(SourceIpConfigT&& value) { SetSourceIpConfig(std::forward<SourceIpConfigT>(value)); return *this;}
70
72
76 inline const OidcConfig& GetOidcConfig() const { return m_oidcConfig; }
77 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
78 template<typename OidcConfigT = OidcConfig>
79 void SetOidcConfig(OidcConfigT&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::forward<OidcConfigT>(value); }
80 template<typename OidcConfigT = OidcConfig>
81 UpdateWorkforceRequest& WithOidcConfig(OidcConfigT&& value) { SetOidcConfig(std::forward<OidcConfigT>(value)); return *this;}
83
85
88 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
89 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
90 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
91 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value); }
92 template<typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
93 UpdateWorkforceRequest& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) { SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value)); return *this;}
95
97
102 inline WorkforceIpAddressType GetIpAddressType() const { return m_ipAddressType; }
103 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
104 inline void SetIpAddressType(WorkforceIpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
107 private:
108
109 Aws::String m_workforceName;
110 bool m_workforceNameHasBeenSet = false;
111
112 SourceIpConfig m_sourceIpConfig;
113 bool m_sourceIpConfigHasBeenSet = false;
114
115 OidcConfig m_oidcConfig;
116 bool m_oidcConfigHasBeenSet = false;
117
118 WorkforceVpcConfigRequest m_workforceVpcConfig;
119 bool m_workforceVpcConfigHasBeenSet = false;
120
122 bool m_ipAddressTypeHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace SageMaker
127} // 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
void SetIpAddressType(WorkforceIpAddressType value)
UpdateWorkforceRequest & WithWorkforceVpcConfig(WorkforceVpcConfigT &&value)
UpdateWorkforceRequest & WithWorkforceName(WorkforceNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateWorkforceRequest & WithOidcConfig(OidcConfigT &&value)
UpdateWorkforceRequest & WithIpAddressType(WorkforceIpAddressType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String