/* * Copyright 2018-2023 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.mturk.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class NotifyWorkersRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The subject line of the email message to send. Can include up to 200 characters. *
*/ private String subject; /** ** The text of the email message to send. Can include up to 4,096 characters *
*/ private String messageText; /** ** A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. *
*/ private java.util.List* The subject line of the email message to send. Can include up to 200 characters. *
* * @param subject * The subject line of the email message to send. Can include up to 200 characters. */ public void setSubject(String subject) { this.subject = subject; } /** ** The subject line of the email message to send. Can include up to 200 characters. *
* * @return The subject line of the email message to send. Can include up to 200 characters. */ public String getSubject() { return this.subject; } /** ** The subject line of the email message to send. Can include up to 200 characters. *
* * @param subject * The subject line of the email message to send. Can include up to 200 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public NotifyWorkersRequest withSubject(String subject) { setSubject(subject); return this; } /** ** The text of the email message to send. Can include up to 4,096 characters *
* * @param messageText * The text of the email message to send. Can include up to 4,096 characters */ public void setMessageText(String messageText) { this.messageText = messageText; } /** ** The text of the email message to send. Can include up to 4,096 characters *
* * @return The text of the email message to send. Can include up to 4,096 characters */ public String getMessageText() { return this.messageText; } /** ** The text of the email message to send. Can include up to 4,096 characters *
* * @param messageText * The text of the email message to send. Can include up to 4,096 characters * @return Returns a reference to this object so that method calls can be chained together. */ public NotifyWorkersRequest withMessageText(String messageText) { setMessageText(messageText); return this; } /** ** A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. *
* * @return A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. */ public java.util.List* A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. *
* * @param workerIds * A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. */ public void setWorkerIds(java.util.Collection* A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setWorkerIds(java.util.Collection)} or {@link #withWorkerIds(java.util.Collection)} if you want to * override the existing values. *
* * @param workerIds * A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. * @return Returns a reference to this object so that method calls can be chained together. */ public NotifyWorkersRequest withWorkerIds(String... workerIds) { if (this.workerIds == null) { setWorkerIds(new java.util.ArrayList* A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. *
* * @param workerIds * A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time. * @return Returns a reference to this object so that method calls can be chained together. */ public NotifyWorkersRequest withWorkerIds(java.util.Collection