All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.sagemaker.model.Workforce Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating with Amazon SageMaker Service

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.sagemaker.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* 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 AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Workforce implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the private workforce. *

*/ private String workforceName; /** *

* The Amazon Resource Name (ARN) of the private workforce. *

*/ private String workforceArn; /** *

* 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. *

*/ private java.util.Date lastUpdatedDate; /** *

* 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. *

*/ private SourceIpConfig sourceIpConfig; /** *

* The subdomain for your OIDC Identity Provider. *

*/ private String subDomain; /** *

* The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and corresponds to * a single * Amazon Cognito user pool. *

*/ private CognitoConfig cognitoConfig; /** *

* The configuration of an OIDC Identity Provider (IdP) private workforce. *

*/ private OidcConfigForResponse oidcConfig; /** *

* The date that the workforce is created. *

*/ private java.util.Date createDate; /** *

* The configuration of a VPC workforce. *

*/ private WorkforceVpcConfigResponse workforceVpcConfig; /** *

* The status of your workforce. *

*/ private String status; /** *

* The reason your workforce failed. *

*/ private String failureReason; /** *

* The name of the private workforce. *

* * @param workforceName * The name of the private workforce. */ public void setWorkforceName(String workforceName) { this.workforceName = workforceName; } /** *

* The name of the private workforce. *

* * @return The name of the private workforce. */ public String getWorkforceName() { return this.workforceName; } /** *

* The name of the private workforce. *

* * @param workforceName * The name of the private workforce. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withWorkforceName(String workforceName) { setWorkforceName(workforceName); return this; } /** *

* The Amazon Resource Name (ARN) of the private workforce. *

* * @param workforceArn * The Amazon Resource Name (ARN) of the private workforce. */ public void setWorkforceArn(String workforceArn) { this.workforceArn = workforceArn; } /** *

* The Amazon Resource Name (ARN) of the private workforce. *

* * @return The Amazon Resource Name (ARN) of the private workforce. */ public String getWorkforceArn() { return this.workforceArn; } /** *

* The Amazon Resource Name (ARN) of the private workforce. *

* * @param workforceArn * The Amazon Resource Name (ARN) of the private workforce. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withWorkforceArn(String workforceArn) { setWorkforceArn(workforceArn); 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. *

* * @param 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. */ public void setLastUpdatedDate(java.util.Date lastUpdatedDate) { this.lastUpdatedDate = 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. *

* * @return 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. */ public java.util.Date getLastUpdatedDate() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withLastUpdatedDate(java.util.Date lastUpdatedDate) { setLastUpdatedDate(lastUpdatedDate); 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. *

* * @param 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. */ public void setSourceIpConfig(SourceIpConfig sourceIpConfig) { this.sourceIpConfig = 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. *

* * @return 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. */ public SourceIpConfig getSourceIpConfig() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withSourceIpConfig(SourceIpConfig sourceIpConfig) { setSourceIpConfig(sourceIpConfig); return this; } /** *

* The subdomain for your OIDC Identity Provider. *

* * @param subDomain * The subdomain for your OIDC Identity Provider. */ public void setSubDomain(String subDomain) { this.subDomain = subDomain; } /** *

* The subdomain for your OIDC Identity Provider. *

* * @return The subdomain for your OIDC Identity Provider. */ public String getSubDomain() { return this.subDomain; } /** *

* The subdomain for your OIDC Identity Provider. *

* * @param subDomain * The subdomain for your OIDC Identity Provider. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withSubDomain(String subDomain) { setSubDomain(subDomain); 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. *

* * @param cognitoConfig * The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and * corresponds to a single Amazon * Cognito user pool. */ public void setCognitoConfig(CognitoConfig cognitoConfig) { this.cognitoConfig = cognitoConfig; } /** *

* The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and corresponds to * a single * Amazon Cognito user pool. *

* * @return The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and * corresponds to a single Amazon * Cognito user pool. */ public CognitoConfig getCognitoConfig() { return this.cognitoConfig; } /** *

* The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and corresponds to * a single * Amazon Cognito user pool. *

* * @param cognitoConfig * The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and * corresponds to a single Amazon * Cognito user pool. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withCognitoConfig(CognitoConfig cognitoConfig) { setCognitoConfig(cognitoConfig); return this; } /** *

* The configuration of an OIDC Identity Provider (IdP) private workforce. *

* * @param oidcConfig * The configuration of an OIDC Identity Provider (IdP) private workforce. */ public void setOidcConfig(OidcConfigForResponse oidcConfig) { this.oidcConfig = oidcConfig; } /** *

* The configuration of an OIDC Identity Provider (IdP) private workforce. *

* * @return The configuration of an OIDC Identity Provider (IdP) private workforce. */ public OidcConfigForResponse getOidcConfig() { return this.oidcConfig; } /** *

* The configuration of an OIDC Identity Provider (IdP) private workforce. *

* * @param oidcConfig * The configuration of an OIDC Identity Provider (IdP) private workforce. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withOidcConfig(OidcConfigForResponse oidcConfig) { setOidcConfig(oidcConfig); return this; } /** *

* The date that the workforce is created. *

* * @param createDate * The date that the workforce is created. */ public void setCreateDate(java.util.Date createDate) { this.createDate = createDate; } /** *

* The date that the workforce is created. *

* * @return The date that the workforce is created. */ public java.util.Date getCreateDate() { return this.createDate; } /** *

* The date that the workforce is created. *

* * @param createDate * The date that the workforce is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withCreateDate(java.util.Date createDate) { setCreateDate(createDate); return this; } /** *

* The configuration of a VPC workforce. *

* * @param workforceVpcConfig * The configuration of a VPC workforce. */ public void setWorkforceVpcConfig(WorkforceVpcConfigResponse workforceVpcConfig) { this.workforceVpcConfig = workforceVpcConfig; } /** *

* The configuration of a VPC workforce. *

* * @return The configuration of a VPC workforce. */ public WorkforceVpcConfigResponse getWorkforceVpcConfig() { return this.workforceVpcConfig; } /** *

* The configuration of a VPC workforce. *

* * @param workforceVpcConfig * The configuration of a VPC workforce. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withWorkforceVpcConfig(WorkforceVpcConfigResponse workforceVpcConfig) { setWorkforceVpcConfig(workforceVpcConfig); return this; } /** *

* The status of your workforce. *

* * @param status * The status of your workforce. * @see WorkforceStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of your workforce. *

* * @return The status of your workforce. * @see WorkforceStatus */ public String getStatus() { return this.status; } /** *

* The status of your workforce. *

* * @param status * The status of your workforce. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkforceStatus */ public Workforce withStatus(String status) { setStatus(status); return this; } /** *

* The status of your workforce. *

* * @param status * The status of your workforce. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkforceStatus */ public Workforce withStatus(WorkforceStatus status) { this.status = status.toString(); return this; } /** *

* The reason your workforce failed. *

* * @param failureReason * The reason your workforce failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** *

* The reason your workforce failed. *

* * @return The reason your workforce failed. */ public String getFailureReason() { return this.failureReason; } /** *

* The reason your workforce failed. *

* * @param failureReason * The reason your workforce failed. * @return Returns a reference to this object so that method calls can be chained together. */ public Workforce withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getWorkforceName() != null) sb.append("WorkforceName: ").append(getWorkforceName()).append(","); if (getWorkforceArn() != null) sb.append("WorkforceArn: ").append(getWorkforceArn()).append(","); if (getLastUpdatedDate() != null) sb.append("LastUpdatedDate: ").append(getLastUpdatedDate()).append(","); if (getSourceIpConfig() != null) sb.append("SourceIpConfig: ").append(getSourceIpConfig()).append(","); if (getSubDomain() != null) sb.append("SubDomain: ").append(getSubDomain()).append(","); if (getCognitoConfig() != null) sb.append("CognitoConfig: ").append(getCognitoConfig()).append(","); if (getOidcConfig() != null) sb.append("OidcConfig: ").append(getOidcConfig()).append(","); if (getCreateDate() != null) sb.append("CreateDate: ").append(getCreateDate()).append(","); if (getWorkforceVpcConfig() != null) sb.append("WorkforceVpcConfig: ").append(getWorkforceVpcConfig()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Workforce == false) return false; Workforce other = (Workforce) obj; if (other.getWorkforceName() == null ^ this.getWorkforceName() == null) return false; if (other.getWorkforceName() != null && other.getWorkforceName().equals(this.getWorkforceName()) == false) return false; if (other.getWorkforceArn() == null ^ this.getWorkforceArn() == null) return false; if (other.getWorkforceArn() != null && other.getWorkforceArn().equals(this.getWorkforceArn()) == false) return false; if (other.getLastUpdatedDate() == null ^ this.getLastUpdatedDate() == null) return false; if (other.getLastUpdatedDate() != null && other.getLastUpdatedDate().equals(this.getLastUpdatedDate()) == false) return false; if (other.getSourceIpConfig() == null ^ this.getSourceIpConfig() == null) return false; if (other.getSourceIpConfig() != null && other.getSourceIpConfig().equals(this.getSourceIpConfig()) == false) return false; if (other.getSubDomain() == null ^ this.getSubDomain() == null) return false; if (other.getSubDomain() != null && other.getSubDomain().equals(this.getSubDomain()) == false) return false; if (other.getCognitoConfig() == null ^ this.getCognitoConfig() == null) return false; if (other.getCognitoConfig() != null && other.getCognitoConfig().equals(this.getCognitoConfig()) == false) return false; if (other.getOidcConfig() == null ^ this.getOidcConfig() == null) return false; if (other.getOidcConfig() != null && other.getOidcConfig().equals(this.getOidcConfig()) == false) return false; if (other.getCreateDate() == null ^ this.getCreateDate() == null) return false; if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == false) return false; if (other.getWorkforceVpcConfig() == null ^ this.getWorkforceVpcConfig() == null) return false; if (other.getWorkforceVpcConfig() != null && other.getWorkforceVpcConfig().equals(this.getWorkforceVpcConfig()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWorkforceName() == null) ? 0 : getWorkforceName().hashCode()); hashCode = prime * hashCode + ((getWorkforceArn() == null) ? 0 : getWorkforceArn().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDate() == null) ? 0 : getLastUpdatedDate().hashCode()); hashCode = prime * hashCode + ((getSourceIpConfig() == null) ? 0 : getSourceIpConfig().hashCode()); hashCode = prime * hashCode + ((getSubDomain() == null) ? 0 : getSubDomain().hashCode()); hashCode = prime * hashCode + ((getCognitoConfig() == null) ? 0 : getCognitoConfig().hashCode()); hashCode = prime * hashCode + ((getOidcConfig() == null) ? 0 : getOidcConfig().hashCode()); hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); hashCode = prime * hashCode + ((getWorkforceVpcConfig() == null) ? 0 : getWorkforceVpcConfig().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); return hashCode; } @Override public Workforce clone() { try { return (Workforce) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.WorkforceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy