/* * 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.elasticmapreduce.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* The input for the DescribeJobFlows operation. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeJobFlowsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** Return only job flows created after this date and time. *
*/ private java.util.Date createdAfter; /** ** Return only job flows created before this date and time. *
*/ private java.util.Date createdBefore; /** ** Return only job flows whose job flow ID is contained in this list. *
*/ private com.amazonaws.internal.SdkInternalList* Return only job flows whose state is contained in this list. *
*/ private com.amazonaws.internal.SdkInternalList* Return only job flows created after this date and time. *
* * @param createdAfter * Return only job flows created after this date and time. */ public void setCreatedAfter(java.util.Date createdAfter) { this.createdAfter = createdAfter; } /** ** Return only job flows created after this date and time. *
* * @return Return only job flows created after this date and time. */ public java.util.Date getCreatedAfter() { return this.createdAfter; } /** ** Return only job flows created after this date and time. *
* * @param createdAfter * Return only job flows created after this date and time. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeJobFlowsRequest withCreatedAfter(java.util.Date createdAfter) { setCreatedAfter(createdAfter); return this; } /** ** Return only job flows created before this date and time. *
* * @param createdBefore * Return only job flows created before this date and time. */ public void setCreatedBefore(java.util.Date createdBefore) { this.createdBefore = createdBefore; } /** ** Return only job flows created before this date and time. *
* * @return Return only job flows created before this date and time. */ public java.util.Date getCreatedBefore() { return this.createdBefore; } /** ** Return only job flows created before this date and time. *
* * @param createdBefore * Return only job flows created before this date and time. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeJobFlowsRequest withCreatedBefore(java.util.Date createdBefore) { setCreatedBefore(createdBefore); return this; } /** ** Return only job flows whose job flow ID is contained in this list. *
* * @return Return only job flows whose job flow ID is contained in this list. */ public java.util.List* Return only job flows whose job flow ID is contained in this list. *
* * @param jobFlowIds * Return only job flows whose job flow ID is contained in this list. */ public void setJobFlowIds(java.util.Collection* Return only job flows whose job flow ID is contained in this list. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setJobFlowIds(java.util.Collection)} or {@link #withJobFlowIds(java.util.Collection)} if you want to * override the existing values. *
* * @param jobFlowIds * Return only job flows whose job flow ID is contained in this list. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeJobFlowsRequest withJobFlowIds(String... jobFlowIds) { if (this.jobFlowIds == null) { setJobFlowIds(new com.amazonaws.internal.SdkInternalList* Return only job flows whose job flow ID is contained in this list. *
* * @param jobFlowIds * Return only job flows whose job flow ID is contained in this list. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeJobFlowsRequest withJobFlowIds(java.util.Collection* Return only job flows whose state is contained in this list. *
* * @return Return only job flows whose state is contained in this list. * @see JobFlowExecutionState */ public java.util.List* Return only job flows whose state is contained in this list. *
* * @param jobFlowStates * Return only job flows whose state is contained in this list. * @see JobFlowExecutionState */ public void setJobFlowStates(java.util.Collection* Return only job flows whose state is contained in this list. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setJobFlowStates(java.util.Collection)} or {@link #withJobFlowStates(java.util.Collection)} if you want * to override the existing values. *
* * @param jobFlowStates * Return only job flows whose state is contained in this list. * @return Returns a reference to this object so that method calls can be chained together. * @see JobFlowExecutionState */ public DescribeJobFlowsRequest withJobFlowStates(String... jobFlowStates) { if (this.jobFlowStates == null) { setJobFlowStates(new com.amazonaws.internal.SdkInternalList* Return only job flows whose state is contained in this list. *
* * @param jobFlowStates * Return only job flows whose state is contained in this list. * @return Returns a reference to this object so that method calls can be chained together. * @see JobFlowExecutionState */ public DescribeJobFlowsRequest withJobFlowStates(java.util.Collection* Return only job flows whose state is contained in this list. *
* * @param jobFlowStates * Return only job flows whose state is contained in this list. * @return Returns a reference to this object so that method calls can be chained together. * @see JobFlowExecutionState */ public DescribeJobFlowsRequest withJobFlowStates(JobFlowExecutionState... jobFlowStates) { com.amazonaws.internal.SdkInternalList