AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateWorkforceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/OidcConfig.h>
11#include <aws/sagemaker/model/SourceIpConfig.h>
12#include <aws/sagemaker/model/WorkforceIpAddressType.h>
13#include <aws/sagemaker/model/WorkforceVpcConfigRequest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API UpdateWorkforceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkforce"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
44 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
45 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
46 template <typename WorkforceNameT = Aws::String>
47 void SetWorkforceName(WorkforceNameT&& value) {
48 m_workforceNameHasBeenSet = true;
49 m_workforceName = std::forward<WorkforceNameT>(value);
50 }
51 template <typename WorkforceNameT = Aws::String>
52 UpdateWorkforceRequest& WithWorkforceName(WorkforceNameT&& value) {
53 SetWorkforceName(std::forward<WorkforceNameT>(value));
54 return *this;
55 }
57
59
65 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
66 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
67 template <typename SourceIpConfigT = SourceIpConfig>
68 void SetSourceIpConfig(SourceIpConfigT&& value) {
69 m_sourceIpConfigHasBeenSet = true;
70 m_sourceIpConfig = std::forward<SourceIpConfigT>(value);
71 }
72 template <typename SourceIpConfigT = SourceIpConfig>
73 UpdateWorkforceRequest& WithSourceIpConfig(SourceIpConfigT&& value) {
74 SetSourceIpConfig(std::forward<SourceIpConfigT>(value));
75 return *this;
76 }
78
80
84 inline const OidcConfig& GetOidcConfig() const { return m_oidcConfig; }
85 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
86 template <typename OidcConfigT = OidcConfig>
87 void SetOidcConfig(OidcConfigT&& value) {
88 m_oidcConfigHasBeenSet = true;
89 m_oidcConfig = std::forward<OidcConfigT>(value);
90 }
91 template <typename OidcConfigT = OidcConfig>
92 UpdateWorkforceRequest& WithOidcConfig(OidcConfigT&& value) {
93 SetOidcConfig(std::forward<OidcConfigT>(value));
94 return *this;
95 }
97
99
102 inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
103 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
104 template <typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
105 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) {
106 m_workforceVpcConfigHasBeenSet = true;
107 m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value);
108 }
109 template <typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
110 UpdateWorkforceRequest& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) {
111 SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value));
112 return *this;
113 }
115
117
122 inline WorkforceIpAddressType GetIpAddressType() const { return m_ipAddressType; }
123 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
125 m_ipAddressTypeHasBeenSet = true;
126 m_ipAddressType = value;
127 }
129 SetIpAddressType(value);
130 return *this;
131 }
133 private:
134 Aws::String m_workforceName;
135
136 SourceIpConfig m_sourceIpConfig;
137
138 OidcConfig m_oidcConfig;
139
140 WorkforceVpcConfigRequest m_workforceVpcConfig;
141
143 bool m_workforceNameHasBeenSet = false;
144 bool m_sourceIpConfigHasBeenSet = false;
145 bool m_oidcConfigHasBeenSet = false;
146 bool m_workforceVpcConfigHasBeenSet = false;
147 bool m_ipAddressTypeHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace SageMaker
152} // 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