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

com.amazonaws.services.sagemaker.model.Workteam 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

The 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;

/**
 * 

* Provides details about a labeling work team. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Workteam implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the work team. *

*/ private String workteamName; /** *

* A list of MemberDefinition objects that contains objects that identify the workers that make up the * work team. *

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces * created using Amazon Cognito use CognitoMemberDefinition. For workforces created using your own OIDC * identity provider (IdP) use OidcMemberDefinition. *

*/ private java.util.List memberDefinitions; /** *

* The Amazon Resource Name (ARN) that identifies the work team. *

*/ private String workteamArn; /** *

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

*/ private String workforceArn; /** *

* The Amazon Marketplace identifier for a vendor's work team. *

*/ private java.util.List productListingIds; /** *

* A description of the work team. *

*/ private String description; /** *

* The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects. *

*/ private String subDomain; /** *

* The date and time that the work team was created (timestamp). *

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

* The date and time that the work team was last updated (timestamp). *

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

* Configures SNS notifications of available or expiring work items for work teams. *

*/ private NotificationConfiguration notificationConfiguration; /** *

* Describes any access constraints that have been defined for Amazon S3 resources. *

*/ private WorkerAccessConfiguration workerAccessConfiguration; /** *

* The name of the work team. *

* * @param workteamName * The name of the work team. */ public void setWorkteamName(String workteamName) { this.workteamName = workteamName; } /** *

* The name of the work team. *

* * @return The name of the work team. */ public String getWorkteamName() { return this.workteamName; } /** *

* The name of the work team. *

* * @param workteamName * The name of the work team. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withWorkteamName(String workteamName) { setWorkteamName(workteamName); return this; } /** *

* A list of MemberDefinition objects that contains objects that identify the workers that make up the * work team. *

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces * created using Amazon Cognito use CognitoMemberDefinition. For workforces created using your own OIDC * identity provider (IdP) use OidcMemberDefinition. *

* * @return A list of MemberDefinition objects that contains objects that identify the workers that make * up the work team.

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private * workforces created using Amazon Cognito use CognitoMemberDefinition. For workforces created * using your own OIDC identity provider (IdP) use OidcMemberDefinition. */ public java.util.List getMemberDefinitions() { return memberDefinitions; } /** *

* A list of MemberDefinition objects that contains objects that identify the workers that make up the * work team. *

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces * created using Amazon Cognito use CognitoMemberDefinition. For workforces created using your own OIDC * identity provider (IdP) use OidcMemberDefinition. *

* * @param memberDefinitions * A list of MemberDefinition objects that contains objects that identify the workers that make * up the work team.

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private * workforces created using Amazon Cognito use CognitoMemberDefinition. For workforces created * using your own OIDC identity provider (IdP) use OidcMemberDefinition. */ public void setMemberDefinitions(java.util.Collection memberDefinitions) { if (memberDefinitions == null) { this.memberDefinitions = null; return; } this.memberDefinitions = new java.util.ArrayList(memberDefinitions); } /** *

* A list of MemberDefinition objects that contains objects that identify the workers that make up the * work team. *

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces * created using Amazon Cognito use CognitoMemberDefinition. For workforces created using your own OIDC * identity provider (IdP) use OidcMemberDefinition. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setMemberDefinitions(java.util.Collection)} or {@link #withMemberDefinitions(java.util.Collection)} if * you want to override the existing values. *

* * @param memberDefinitions * A list of MemberDefinition objects that contains objects that identify the workers that make * up the work team.

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private * workforces created using Amazon Cognito use CognitoMemberDefinition. For workforces created * using your own OIDC identity provider (IdP) use OidcMemberDefinition. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withMemberDefinitions(MemberDefinition... memberDefinitions) { if (this.memberDefinitions == null) { setMemberDefinitions(new java.util.ArrayList(memberDefinitions.length)); } for (MemberDefinition ele : memberDefinitions) { this.memberDefinitions.add(ele); } return this; } /** *

* A list of MemberDefinition objects that contains objects that identify the workers that make up the * work team. *

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces * created using Amazon Cognito use CognitoMemberDefinition. For workforces created using your own OIDC * identity provider (IdP) use OidcMemberDefinition. *

* * @param memberDefinitions * A list of MemberDefinition objects that contains objects that identify the workers that make * up the work team.

*

* Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private * workforces created using Amazon Cognito use CognitoMemberDefinition. For workforces created * using your own OIDC identity provider (IdP) use OidcMemberDefinition. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withMemberDefinitions(java.util.Collection memberDefinitions) { setMemberDefinitions(memberDefinitions); return this; } /** *

* The Amazon Resource Name (ARN) that identifies the work team. *

* * @param workteamArn * The Amazon Resource Name (ARN) that identifies the work team. */ public void setWorkteamArn(String workteamArn) { this.workteamArn = workteamArn; } /** *

* The Amazon Resource Name (ARN) that identifies the work team. *

* * @return The Amazon Resource Name (ARN) that identifies the work team. */ public String getWorkteamArn() { return this.workteamArn; } /** *

* The Amazon Resource Name (ARN) that identifies the work team. *

* * @param workteamArn * The Amazon Resource Name (ARN) that identifies the work team. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withWorkteamArn(String workteamArn) { setWorkteamArn(workteamArn); return this; } /** *

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

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

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

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

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

* * @param workforceArn * The Amazon Resource Name (ARN) of the workforce. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withWorkforceArn(String workforceArn) { setWorkforceArn(workforceArn); return this; } /** *

* The Amazon Marketplace identifier for a vendor's work team. *

* * @return The Amazon Marketplace identifier for a vendor's work team. */ public java.util.List getProductListingIds() { return productListingIds; } /** *

* The Amazon Marketplace identifier for a vendor's work team. *

* * @param productListingIds * The Amazon Marketplace identifier for a vendor's work team. */ public void setProductListingIds(java.util.Collection productListingIds) { if (productListingIds == null) { this.productListingIds = null; return; } this.productListingIds = new java.util.ArrayList(productListingIds); } /** *

* The Amazon Marketplace identifier for a vendor's work team. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setProductListingIds(java.util.Collection)} or {@link #withProductListingIds(java.util.Collection)} if * you want to override the existing values. *

* * @param productListingIds * The Amazon Marketplace identifier for a vendor's work team. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withProductListingIds(String... productListingIds) { if (this.productListingIds == null) { setProductListingIds(new java.util.ArrayList(productListingIds.length)); } for (String ele : productListingIds) { this.productListingIds.add(ele); } return this; } /** *

* The Amazon Marketplace identifier for a vendor's work team. *

* * @param productListingIds * The Amazon Marketplace identifier for a vendor's work team. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withProductListingIds(java.util.Collection productListingIds) { setProductListingIds(productListingIds); return this; } /** *

* A description of the work team. *

* * @param description * A description of the work team. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the work team. *

* * @return A description of the work team. */ public String getDescription() { return this.description; } /** *

* A description of the work team. *

* * @param description * A description of the work team. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withDescription(String description) { setDescription(description); return this; } /** *

* The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects. *

* * @param subDomain * The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects. */ public void setSubDomain(String subDomain) { this.subDomain = subDomain; } /** *

* The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects. *

* * @return The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects. */ public String getSubDomain() { return this.subDomain; } /** *

* The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects. *

* * @param subDomain * The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withSubDomain(String subDomain) { setSubDomain(subDomain); return this; } /** *

* The date and time that the work team was created (timestamp). *

* * @param createDate * The date and time that the work team was created (timestamp). */ public void setCreateDate(java.util.Date createDate) { this.createDate = createDate; } /** *

* The date and time that the work team was created (timestamp). *

* * @return The date and time that the work team was created (timestamp). */ public java.util.Date getCreateDate() { return this.createDate; } /** *

* The date and time that the work team was created (timestamp). *

* * @param createDate * The date and time that the work team was created (timestamp). * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withCreateDate(java.util.Date createDate) { setCreateDate(createDate); return this; } /** *

* The date and time that the work team was last updated (timestamp). *

* * @param lastUpdatedDate * The date and time that the work team was last updated (timestamp). */ public void setLastUpdatedDate(java.util.Date lastUpdatedDate) { this.lastUpdatedDate = lastUpdatedDate; } /** *

* The date and time that the work team was last updated (timestamp). *

* * @return The date and time that the work team was last updated (timestamp). */ public java.util.Date getLastUpdatedDate() { return this.lastUpdatedDate; } /** *

* The date and time that the work team was last updated (timestamp). *

* * @param lastUpdatedDate * The date and time that the work team was last updated (timestamp). * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withLastUpdatedDate(java.util.Date lastUpdatedDate) { setLastUpdatedDate(lastUpdatedDate); return this; } /** *

* Configures SNS notifications of available or expiring work items for work teams. *

* * @param notificationConfiguration * Configures SNS notifications of available or expiring work items for work teams. */ public void setNotificationConfiguration(NotificationConfiguration notificationConfiguration) { this.notificationConfiguration = notificationConfiguration; } /** *

* Configures SNS notifications of available or expiring work items for work teams. *

* * @return Configures SNS notifications of available or expiring work items for work teams. */ public NotificationConfiguration getNotificationConfiguration() { return this.notificationConfiguration; } /** *

* Configures SNS notifications of available or expiring work items for work teams. *

* * @param notificationConfiguration * Configures SNS notifications of available or expiring work items for work teams. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withNotificationConfiguration(NotificationConfiguration notificationConfiguration) { setNotificationConfiguration(notificationConfiguration); return this; } /** *

* Describes any access constraints that have been defined for Amazon S3 resources. *

* * @param workerAccessConfiguration * Describes any access constraints that have been defined for Amazon S3 resources. */ public void setWorkerAccessConfiguration(WorkerAccessConfiguration workerAccessConfiguration) { this.workerAccessConfiguration = workerAccessConfiguration; } /** *

* Describes any access constraints that have been defined for Amazon S3 resources. *

* * @return Describes any access constraints that have been defined for Amazon S3 resources. */ public WorkerAccessConfiguration getWorkerAccessConfiguration() { return this.workerAccessConfiguration; } /** *

* Describes any access constraints that have been defined for Amazon S3 resources. *

* * @param workerAccessConfiguration * Describes any access constraints that have been defined for Amazon S3 resources. * @return Returns a reference to this object so that method calls can be chained together. */ public Workteam withWorkerAccessConfiguration(WorkerAccessConfiguration workerAccessConfiguration) { setWorkerAccessConfiguration(workerAccessConfiguration); 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 (getWorkteamName() != null) sb.append("WorkteamName: ").append(getWorkteamName()).append(","); if (getMemberDefinitions() != null) sb.append("MemberDefinitions: ").append(getMemberDefinitions()).append(","); if (getWorkteamArn() != null) sb.append("WorkteamArn: ").append(getWorkteamArn()).append(","); if (getWorkforceArn() != null) sb.append("WorkforceArn: ").append(getWorkforceArn()).append(","); if (getProductListingIds() != null) sb.append("ProductListingIds: ").append(getProductListingIds()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getSubDomain() != null) sb.append("SubDomain: ").append(getSubDomain()).append(","); if (getCreateDate() != null) sb.append("CreateDate: ").append(getCreateDate()).append(","); if (getLastUpdatedDate() != null) sb.append("LastUpdatedDate: ").append(getLastUpdatedDate()).append(","); if (getNotificationConfiguration() != null) sb.append("NotificationConfiguration: ").append(getNotificationConfiguration()).append(","); if (getWorkerAccessConfiguration() != null) sb.append("WorkerAccessConfiguration: ").append(getWorkerAccessConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Workteam == false) return false; Workteam other = (Workteam) obj; if (other.getWorkteamName() == null ^ this.getWorkteamName() == null) return false; if (other.getWorkteamName() != null && other.getWorkteamName().equals(this.getWorkteamName()) == false) return false; if (other.getMemberDefinitions() == null ^ this.getMemberDefinitions() == null) return false; if (other.getMemberDefinitions() != null && other.getMemberDefinitions().equals(this.getMemberDefinitions()) == false) return false; if (other.getWorkteamArn() == null ^ this.getWorkteamArn() == null) return false; if (other.getWorkteamArn() != null && other.getWorkteamArn().equals(this.getWorkteamArn()) == 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.getProductListingIds() == null ^ this.getProductListingIds() == null) return false; if (other.getProductListingIds() != null && other.getProductListingIds().equals(this.getProductListingIds()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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.getCreateDate() == null ^ this.getCreateDate() == null) return false; if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == 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.getNotificationConfiguration() == null ^ this.getNotificationConfiguration() == null) return false; if (other.getNotificationConfiguration() != null && other.getNotificationConfiguration().equals(this.getNotificationConfiguration()) == false) return false; if (other.getWorkerAccessConfiguration() == null ^ this.getWorkerAccessConfiguration() == null) return false; if (other.getWorkerAccessConfiguration() != null && other.getWorkerAccessConfiguration().equals(this.getWorkerAccessConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWorkteamName() == null) ? 0 : getWorkteamName().hashCode()); hashCode = prime * hashCode + ((getMemberDefinitions() == null) ? 0 : getMemberDefinitions().hashCode()); hashCode = prime * hashCode + ((getWorkteamArn() == null) ? 0 : getWorkteamArn().hashCode()); hashCode = prime * hashCode + ((getWorkforceArn() == null) ? 0 : getWorkforceArn().hashCode()); hashCode = prime * hashCode + ((getProductListingIds() == null) ? 0 : getProductListingIds().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getSubDomain() == null) ? 0 : getSubDomain().hashCode()); hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDate() == null) ? 0 : getLastUpdatedDate().hashCode()); hashCode = prime * hashCode + ((getNotificationConfiguration() == null) ? 0 : getNotificationConfiguration().hashCode()); hashCode = prime * hashCode + ((getWorkerAccessConfiguration() == null) ? 0 : getWorkerAccessConfiguration().hashCode()); return hashCode; } @Override public Workteam clone() { try { return (Workteam) 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.WorkteamMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy