/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Name of the parameter from the Review policy. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PolicyParameter implements Serializable, Cloneable, StructuredPojo { /** ** Name of the parameter from the list of Review Polices. *
*/ private String key; /** ** The list of values of the Parameter *
*/ private java.util.List* List of ParameterMapEntry objects. *
*/ private java.util.List* Name of the parameter from the list of Review Polices. *
* * @param key * Name of the parameter from the list of Review Polices. */ public void setKey(String key) { this.key = key; } /** ** Name of the parameter from the list of Review Polices. *
* * @return Name of the parameter from the list of Review Polices. */ public String getKey() { return this.key; } /** ** Name of the parameter from the list of Review Polices. *
* * @param key * Name of the parameter from the list of Review Polices. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyParameter withKey(String key) { setKey(key); return this; } /** ** The list of values of the Parameter *
* * @return The list of values of the Parameter */ public java.util.List* The list of values of the Parameter *
* * @param values * The list of values of the Parameter */ public void setValues(java.util.Collection* The list of values of the Parameter *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setValues(java.util.Collection)} or {@link #withValues(java.util.Collection)} if you want to override the * existing values. *
* * @param values * The list of values of the Parameter * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyParameter withValues(String... values) { if (this.values == null) { setValues(new java.util.ArrayList* The list of values of the Parameter *
* * @param values * The list of values of the Parameter * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyParameter withValues(java.util.Collection* List of ParameterMapEntry objects. *
* * @return List of ParameterMapEntry objects. */ public java.util.List* List of ParameterMapEntry objects. *
* * @param mapEntries * List of ParameterMapEntry objects. */ public void setMapEntries(java.util.Collection* List of ParameterMapEntry objects. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMapEntries(java.util.Collection)} or {@link #withMapEntries(java.util.Collection)} if you want to * override the existing values. *
* * @param mapEntries * List of ParameterMapEntry objects. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyParameter withMapEntries(ParameterMapEntry... mapEntries) { if (this.mapEntries == null) { setMapEntries(new java.util.ArrayList* List of ParameterMapEntry objects. *
* * @param mapEntries * List of ParameterMapEntry objects. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyParameter withMapEntries(java.util.Collection