/* * 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; /** *

* Represents a specific warning or failure. *

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

* Information about the associated run. *

*/ private ProblemDetail run; /** *

* Information about the associated job. *

*/ private ProblemDetail job; /** *

* Information about the associated suite. *

*/ private ProblemDetail suite; /** *

* Information about the associated test. *

*/ private ProblemDetail test; /** *

* Information about the associated device. *

*/ private Device device; /** *

* The problem's result. *

*

* Allowed values include: *

* */ private String result; /** *

* A message about the problem's result. *

*/ private String message; /** *

* Information about the associated run. *

* * @param run * Information about the associated run. */ public void setRun(ProblemDetail run) { this.run = run; } /** *

* Information about the associated run. *

* * @return Information about the associated run. */ public ProblemDetail getRun() { return this.run; } /** *

* Information about the associated run. *

* * @param run * Information about the associated run. * @return Returns a reference to this object so that method calls can be chained together. */ public Problem withRun(ProblemDetail run) { setRun(run); return this; } /** *

* Information about the associated job. *

* * @param job * Information about the associated job. */ public void setJob(ProblemDetail job) { this.job = job; } /** *

* Information about the associated job. *

* * @return Information about the associated job. */ public ProblemDetail getJob() { return this.job; } /** *

* Information about the associated job. *

* * @param job * Information about the associated job. * @return Returns a reference to this object so that method calls can be chained together. */ public Problem withJob(ProblemDetail job) { setJob(job); return this; } /** *

* Information about the associated suite. *

* * @param suite * Information about the associated suite. */ public void setSuite(ProblemDetail suite) { this.suite = suite; } /** *

* Information about the associated suite. *

* * @return Information about the associated suite. */ public ProblemDetail getSuite() { return this.suite; } /** *

* Information about the associated suite. *

* * @param suite * Information about the associated suite. * @return Returns a reference to this object so that method calls can be chained together. */ public Problem withSuite(ProblemDetail suite) { setSuite(suite); return this; } /** *

* Information about the associated test. *

* * @param test * Information about the associated test. */ public void setTest(ProblemDetail test) { this.test = test; } /** *

* Information about the associated test. *

* * @return Information about the associated test. */ public ProblemDetail getTest() { return this.test; } /** *

* Information about the associated test. *

* * @param test * Information about the associated test. * @return Returns a reference to this object so that method calls can be chained together. */ public Problem withTest(ProblemDetail test) { setTest(test); return this; } /** *

* Information about the associated device. *

* * @param device * Information about the associated device. */ public void setDevice(Device device) { this.device = device; } /** *

* Information about the associated device. *

* * @return Information about the associated device. */ public Device getDevice() { return this.device; } /** *

* Information about the associated device. *

* * @param device * Information about the associated device. * @return Returns a reference to this object so that method calls can be chained together. */ public Problem withDevice(Device device) { setDevice(device); return this; } /** *

* The problem's result. *

*

* Allowed values include: *

* * * @param result * The problem's result.

*

* Allowed values include: *

*