/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class UpdateWorkforceRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API UpdateWorkforceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkforce"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline const Aws::String& GetWorkforceName() const{ return m_workforceName; } /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; } /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline void SetWorkforceName(const Aws::String& value) { m_workforceNameHasBeenSet = true; m_workforceName = value; } /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline void SetWorkforceName(Aws::String&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::move(value); } /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline void SetWorkforceName(const char* value) { m_workforceNameHasBeenSet = true; m_workforceName.assign(value); } /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline UpdateWorkforceRequest& WithWorkforceName(const Aws::String& value) { SetWorkforceName(value); return *this;} /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline UpdateWorkforceRequest& WithWorkforceName(Aws::String&& value) { SetWorkforceName(std::move(value)); return *this;} /** *

The name of the private workforce that you want to update. You can find your * workforce name by using the ListWorkforces * operation.

*/ inline UpdateWorkforceRequest& WithWorkforceName(const char* value) { SetWorkforceName(value); return *this;} /** *

A list of one to ten worker IP address ranges (CIDRs) * that can be used to access tasks assigned to this workforce.

Maximum: Ten * CIDR values

*/ inline const SourceIpConfig& GetSourceIpConfig() const{ return m_sourceIpConfig; } /** *

A list of one to ten worker IP address ranges (CIDRs) * that can be used to access tasks assigned to this workforce.

Maximum: Ten * CIDR values

*/ inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; } /** *

A list of one to ten worker IP address ranges (CIDRs) * that can be used to access tasks assigned to this workforce.

Maximum: Ten * CIDR values

*/ inline void SetSourceIpConfig(const SourceIpConfig& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = value; } /** *

A list of one to ten worker IP address ranges (CIDRs) * that can be used to access tasks assigned to this workforce.

Maximum: Ten * CIDR values

*/ inline void SetSourceIpConfig(SourceIpConfig&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::move(value); } /** *

A list of one to ten worker IP address ranges (CIDRs) * that can be used to access tasks assigned to this workforce.

Maximum: Ten * CIDR values

*/ inline UpdateWorkforceRequest& WithSourceIpConfig(const SourceIpConfig& value) { SetSourceIpConfig(value); return *this;} /** *

A list of one to ten worker IP address ranges (CIDRs) * that can be used to access tasks assigned to this workforce.

Maximum: Ten * CIDR values

*/ inline UpdateWorkforceRequest& WithSourceIpConfig(SourceIpConfig&& value) { SetSourceIpConfig(std::move(value)); return *this;} /** *

Use this parameter to update your OIDC Identity Provider (IdP) configuration * for a workforce made using your own IdP.

*/ inline const OidcConfig& GetOidcConfig() const{ return m_oidcConfig; } /** *

Use this parameter to update your OIDC Identity Provider (IdP) configuration * for a workforce made using your own IdP.

*/ inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; } /** *

Use this parameter to update your OIDC Identity Provider (IdP) configuration * for a workforce made using your own IdP.

*/ inline void SetOidcConfig(const OidcConfig& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = value; } /** *

Use this parameter to update your OIDC Identity Provider (IdP) configuration * for a workforce made using your own IdP.

*/ inline void SetOidcConfig(OidcConfig&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::move(value); } /** *

Use this parameter to update your OIDC Identity Provider (IdP) configuration * for a workforce made using your own IdP.

*/ inline UpdateWorkforceRequest& WithOidcConfig(const OidcConfig& value) { SetOidcConfig(value); return *this;} /** *

Use this parameter to update your OIDC Identity Provider (IdP) configuration * for a workforce made using your own IdP.

*/ inline UpdateWorkforceRequest& WithOidcConfig(OidcConfig&& value) { SetOidcConfig(std::move(value)); return *this;} /** *

Use this parameter to update your VPC configuration for a workforce.

*/ inline const WorkforceVpcConfigRequest& GetWorkforceVpcConfig() const{ return m_workforceVpcConfig; } /** *

Use this parameter to update your VPC configuration for a workforce.

*/ inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; } /** *

Use this parameter to update your VPC configuration for a workforce.

*/ inline void SetWorkforceVpcConfig(const WorkforceVpcConfigRequest& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = value; } /** *

Use this parameter to update your VPC configuration for a workforce.

*/ inline void SetWorkforceVpcConfig(WorkforceVpcConfigRequest&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::move(value); } /** *

Use this parameter to update your VPC configuration for a workforce.

*/ inline UpdateWorkforceRequest& WithWorkforceVpcConfig(const WorkforceVpcConfigRequest& value) { SetWorkforceVpcConfig(value); return *this;} /** *

Use this parameter to update your VPC configuration for a workforce.

*/ inline UpdateWorkforceRequest& WithWorkforceVpcConfig(WorkforceVpcConfigRequest&& value) { SetWorkforceVpcConfig(std::move(value)); return *this;} private: Aws::String m_workforceName; bool m_workforceNameHasBeenSet = false; SourceIpConfig m_sourceIpConfig; bool m_sourceIpConfigHasBeenSet = false; OidcConfig m_oidcConfig; bool m_oidcConfigHasBeenSet = false; WorkforceVpcConfigRequest m_workforceVpcConfig; bool m_workforceVpcConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws