/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A single private workforce, which is automatically created when you create
* your first private work team. You can create one private work force in each
* Amazon Web Services Region. By default, any workforce-related API operation used
* in a specific region will apply to the workforce created in that region. To
* learn how to create a private workforce, see Create
* a Private Workforce.See Also:
AWS
* API Reference
The name of the private workforce.
*/ inline const Aws::String& GetWorkforceName() const{ return m_workforceName; } /** *The name of the private workforce.
*/ inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; } /** *The name of the private workforce.
*/ inline void SetWorkforceName(const Aws::String& value) { m_workforceNameHasBeenSet = true; m_workforceName = value; } /** *The name of the private workforce.
*/ inline void SetWorkforceName(Aws::String&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::move(value); } /** *The name of the private workforce.
*/ inline void SetWorkforceName(const char* value) { m_workforceNameHasBeenSet = true; m_workforceName.assign(value); } /** *The name of the private workforce.
*/ inline Workforce& WithWorkforceName(const Aws::String& value) { SetWorkforceName(value); return *this;} /** *The name of the private workforce.
*/ inline Workforce& WithWorkforceName(Aws::String&& value) { SetWorkforceName(std::move(value)); return *this;} /** *The name of the private workforce.
*/ inline Workforce& WithWorkforceName(const char* value) { SetWorkforceName(value); return *this;} /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline const Aws::String& GetWorkforceArn() const{ return m_workforceArn; } /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline bool WorkforceArnHasBeenSet() const { return m_workforceArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline void SetWorkforceArn(const Aws::String& value) { m_workforceArnHasBeenSet = true; m_workforceArn = value; } /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline void SetWorkforceArn(Aws::String&& value) { m_workforceArnHasBeenSet = true; m_workforceArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline void SetWorkforceArn(const char* value) { m_workforceArnHasBeenSet = true; m_workforceArn.assign(value); } /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline Workforce& WithWorkforceArn(const Aws::String& value) { SetWorkforceArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline Workforce& WithWorkforceArn(Aws::String&& value) { SetWorkforceArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the private workforce.
*/ inline Workforce& WithWorkforceArn(const char* value) { SetWorkforceArn(value); return *this;} /** *The most recent date that UpdateWorkforce * was used to successfully add one or more IP address ranges (CIDRs) * to a private workforce's allow list.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; } /** *The most recent date that UpdateWorkforce * was used to successfully add one or more IP address ranges (CIDRs) * to a private workforce's allow list.
*/ inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; } /** *The most recent date that UpdateWorkforce * was used to successfully add one or more IP address ranges (CIDRs) * to a private workforce's allow list.
*/ inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; } /** *The most recent date that UpdateWorkforce * was used to successfully add one or more IP address ranges (CIDRs) * to a private workforce's allow list.
*/ inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); } /** *The most recent date that UpdateWorkforce * was used to successfully add one or more IP address ranges (CIDRs) * to a private workforce's allow list.
*/ inline Workforce& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} /** *The most recent date that UpdateWorkforce * was used to successfully add one or more IP address ranges (CIDRs) * to a private workforce's allow list.
*/ inline Workforce& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;} /** *A list of one to ten IP address ranges (CIDRs) * to be added to the workforce allow list. By default, a workforce isn't * restricted to specific IP addresses.
*/ inline const SourceIpConfig& GetSourceIpConfig() const{ return m_sourceIpConfig; } /** *A list of one to ten IP address ranges (CIDRs) * to be added to the workforce allow list. By default, a workforce isn't * restricted to specific IP addresses.
*/ inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; } /** *A list of one to ten IP address ranges (CIDRs) * to be added to the workforce allow list. By default, a workforce isn't * restricted to specific IP addresses.
*/ inline void SetSourceIpConfig(const SourceIpConfig& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = value; } /** *A list of one to ten IP address ranges (CIDRs) * to be added to the workforce allow list. By default, a workforce isn't * restricted to specific IP addresses.
*/ inline void SetSourceIpConfig(SourceIpConfig&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::move(value); } /** *A list of one to ten IP address ranges (CIDRs) * to be added to the workforce allow list. By default, a workforce isn't * restricted to specific IP addresses.
*/ inline Workforce& WithSourceIpConfig(const SourceIpConfig& value) { SetSourceIpConfig(value); return *this;} /** *A list of one to ten IP address ranges (CIDRs) * to be added to the workforce allow list. By default, a workforce isn't * restricted to specific IP addresses.
*/ inline Workforce& WithSourceIpConfig(SourceIpConfig&& value) { SetSourceIpConfig(std::move(value)); return *this;} /** *The subdomain for your OIDC Identity Provider.
*/ inline const Aws::String& GetSubDomain() const{ return m_subDomain; } /** *The subdomain for your OIDC Identity Provider.
*/ inline bool SubDomainHasBeenSet() const { return m_subDomainHasBeenSet; } /** *The subdomain for your OIDC Identity Provider.
*/ inline void SetSubDomain(const Aws::String& value) { m_subDomainHasBeenSet = true; m_subDomain = value; } /** *The subdomain for your OIDC Identity Provider.
*/ inline void SetSubDomain(Aws::String&& value) { m_subDomainHasBeenSet = true; m_subDomain = std::move(value); } /** *The subdomain for your OIDC Identity Provider.
*/ inline void SetSubDomain(const char* value) { m_subDomainHasBeenSet = true; m_subDomain.assign(value); } /** *The subdomain for your OIDC Identity Provider.
*/ inline Workforce& WithSubDomain(const Aws::String& value) { SetSubDomain(value); return *this;} /** *The subdomain for your OIDC Identity Provider.
*/ inline Workforce& WithSubDomain(Aws::String&& value) { SetSubDomain(std::move(value)); return *this;} /** *The subdomain for your OIDC Identity Provider.
*/ inline Workforce& WithSubDomain(const char* value) { SetSubDomain(value); return *this;} /** *The configuration of an Amazon Cognito workforce. A single Cognito workforce * is created using and corresponds to a single * Amazon Cognito user pool.
*/ inline const CognitoConfig& GetCognitoConfig() const{ return m_cognitoConfig; } /** *The configuration of an Amazon Cognito workforce. A single Cognito workforce * is created using and corresponds to a single * Amazon Cognito user pool.
*/ inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; } /** *The configuration of an Amazon Cognito workforce. A single Cognito workforce * is created using and corresponds to a single * Amazon Cognito user pool.
*/ inline void SetCognitoConfig(const CognitoConfig& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = value; } /** *The configuration of an Amazon Cognito workforce. A single Cognito workforce * is created using and corresponds to a single * Amazon Cognito user pool.
*/ inline void SetCognitoConfig(CognitoConfig&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::move(value); } /** *The configuration of an Amazon Cognito workforce. A single Cognito workforce * is created using and corresponds to a single * Amazon Cognito user pool.
*/ inline Workforce& WithCognitoConfig(const CognitoConfig& value) { SetCognitoConfig(value); return *this;} /** *The configuration of an Amazon Cognito workforce. A single Cognito workforce * is created using and corresponds to a single * Amazon Cognito user pool.
*/ inline Workforce& WithCognitoConfig(CognitoConfig&& value) { SetCognitoConfig(std::move(value)); return *this;} /** *The configuration of an OIDC Identity Provider (IdP) private workforce.
*/ inline const OidcConfigForResponse& GetOidcConfig() const{ return m_oidcConfig; } /** *The configuration of an OIDC Identity Provider (IdP) private workforce.
*/ inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; } /** *The configuration of an OIDC Identity Provider (IdP) private workforce.
*/ inline void SetOidcConfig(const OidcConfigForResponse& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = value; } /** *The configuration of an OIDC Identity Provider (IdP) private workforce.
*/ inline void SetOidcConfig(OidcConfigForResponse&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::move(value); } /** *The configuration of an OIDC Identity Provider (IdP) private workforce.
*/ inline Workforce& WithOidcConfig(const OidcConfigForResponse& value) { SetOidcConfig(value); return *this;} /** *The configuration of an OIDC Identity Provider (IdP) private workforce.
*/ inline Workforce& WithOidcConfig(OidcConfigForResponse&& value) { SetOidcConfig(std::move(value)); return *this;} /** *The date that the workforce is created.
*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *The date that the workforce is created.
*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *The date that the workforce is created.
*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *The date that the workforce is created.
*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *The date that the workforce is created.
*/ inline Workforce& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *The date that the workforce is created.
*/ inline Workforce& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} /** *The configuration of a VPC workforce.
*/ inline const WorkforceVpcConfigResponse& GetWorkforceVpcConfig() const{ return m_workforceVpcConfig; } /** *The configuration of a VPC workforce.
*/ inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; } /** *The configuration of a VPC workforce.
*/ inline void SetWorkforceVpcConfig(const WorkforceVpcConfigResponse& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = value; } /** *The configuration of a VPC workforce.
*/ inline void SetWorkforceVpcConfig(WorkforceVpcConfigResponse&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::move(value); } /** *The configuration of a VPC workforce.
*/ inline Workforce& WithWorkforceVpcConfig(const WorkforceVpcConfigResponse& value) { SetWorkforceVpcConfig(value); return *this;} /** *The configuration of a VPC workforce.
*/ inline Workforce& WithWorkforceVpcConfig(WorkforceVpcConfigResponse&& value) { SetWorkforceVpcConfig(std::move(value)); return *this;} /** *The status of your workforce.
*/ inline const WorkforceStatus& GetStatus() const{ return m_status; } /** *The status of your workforce.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of your workforce.
*/ inline void SetStatus(const WorkforceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of your workforce.
*/ inline void SetStatus(WorkforceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of your workforce.
*/ inline Workforce& WithStatus(const WorkforceStatus& value) { SetStatus(value); return *this;} /** *The status of your workforce.
*/ inline Workforce& WithStatus(WorkforceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The reason your workforce failed.
*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *The reason your workforce failed.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *The reason your workforce failed.
*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *The reason your workforce failed.
*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *The reason your workforce failed.
*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *The reason your workforce failed.
*/ inline Workforce& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *The reason your workforce failed.
*/ inline Workforce& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *The reason your workforce failed.
*/ inline Workforce& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_workforceName; bool m_workforceNameHasBeenSet = false; Aws::String m_workforceArn; bool m_workforceArnHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDate; bool m_lastUpdatedDateHasBeenSet = false; SourceIpConfig m_sourceIpConfig; bool m_sourceIpConfigHasBeenSet = false; Aws::String m_subDomain; bool m_subDomainHasBeenSet = false; CognitoConfig m_cognitoConfig; bool m_cognitoConfigHasBeenSet = false; OidcConfigForResponse m_oidcConfig; bool m_oidcConfigHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; WorkforceVpcConfigResponse m_workforceVpcConfig; bool m_workforceVpcConfigHasBeenSet = false; WorkforceStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws