/* * 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.devicefarm.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A collection of one or more problems, grouped by their result. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UniqueProblem implements Serializable, Cloneable, StructuredPojo { /** ** A message about the unique problems' result. *
*/ private String message; /** ** Information about the problems. *
*/ private java.util.List* A message about the unique problems' result. *
* * @param message * A message about the unique problems' result. */ public void setMessage(String message) { this.message = message; } /** ** A message about the unique problems' result. *
* * @return A message about the unique problems' result. */ public String getMessage() { return this.message; } /** ** A message about the unique problems' result. *
* * @param message * A message about the unique problems' result. * @return Returns a reference to this object so that method calls can be chained together. */ public UniqueProblem withMessage(String message) { setMessage(message); return this; } /** ** Information about the problems. *
* * @return Information about the problems. */ public java.util.List* Information about the problems. *
* * @param problems * Information about the problems. */ public void setProblems(java.util.Collection* Information about the problems. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProblems(java.util.Collection)} or {@link #withProblems(java.util.Collection)} if you want to override * the existing values. *
* * @param problems * Information about the problems. * @return Returns a reference to this object so that method calls can be chained together. */ public UniqueProblem withProblems(Problem... problems) { if (this.problems == null) { setProblems(new java.util.ArrayList* Information about the problems. *
* * @param problems * Information about the problems. * @return Returns a reference to this object so that method calls can be chained together. */ public UniqueProblem withProblems(java.util.Collection