All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iotdeviceadvisor.model.GetSuiteRunResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Core Device Advisor module holds the client classes that are used for communicating with AWS IoT Core Device Advisor Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2015-2020 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.iotdeviceadvisor.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* Gets the information about Device Advisor test suite run based on suite definition Id. *

*/ private String suiteDefinitionId; /** *

* Gets the information about Device Advisor test suite run based on suite definition version. *

*/ private String suiteDefinitionVersion; /** *

* Gets the information about Device Advisor test suite run based on suite run Id. *

*/ private String suiteRunId; /** *

* The ARN of the suite run. *

*/ private String suiteRunArn; /** *

* Gets the information about Device Advisor test suite run based on suite configuration. *

*/ private SuiteRunConfiguration suiteRunConfiguration; /** *

* Gets the information about Device Advisor test suite run based on test case runs. *

*/ private TestResult testResult; /** *

* Gets the information about Device Advisor test suite run based on start time. *

*/ private java.util.Date startTime; /** *

* Gets the information about Device Advisor test suite run based on end time. *

*/ private java.util.Date endTime; /** *

* Gets the information about Device Advisor test suite run based on its status. *

*/ private String status; /** *

* Gets the information about Device Advisor test suite run based on error. *

*/ private String errorReason; /** *

* The tags attached to the suite run. *

*/ private java.util.Map tags; /** *

* Gets the information about Device Advisor test suite run based on suite definition Id. *

* * @param suiteDefinitionId * Gets the information about Device Advisor test suite run based on suite definition Id. */ public void setSuiteDefinitionId(String suiteDefinitionId) { this.suiteDefinitionId = suiteDefinitionId; } /** *

* Gets the information about Device Advisor test suite run based on suite definition Id. *

* * @return Gets the information about Device Advisor test suite run based on suite definition Id. */ public String getSuiteDefinitionId() { return this.suiteDefinitionId; } /** *

* Gets the information about Device Advisor test suite run based on suite definition Id. *

* * @param suiteDefinitionId * Gets the information about Device Advisor test suite run based on suite definition Id. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withSuiteDefinitionId(String suiteDefinitionId) { setSuiteDefinitionId(suiteDefinitionId); return this; } /** *

* Gets the information about Device Advisor test suite run based on suite definition version. *

* * @param suiteDefinitionVersion * Gets the information about Device Advisor test suite run based on suite definition version. */ public void setSuiteDefinitionVersion(String suiteDefinitionVersion) { this.suiteDefinitionVersion = suiteDefinitionVersion; } /** *

* Gets the information about Device Advisor test suite run based on suite definition version. *

* * @return Gets the information about Device Advisor test suite run based on suite definition version. */ public String getSuiteDefinitionVersion() { return this.suiteDefinitionVersion; } /** *

* Gets the information about Device Advisor test suite run based on suite definition version. *

* * @param suiteDefinitionVersion * Gets the information about Device Advisor test suite run based on suite definition version. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withSuiteDefinitionVersion(String suiteDefinitionVersion) { setSuiteDefinitionVersion(suiteDefinitionVersion); return this; } /** *

* Gets the information about Device Advisor test suite run based on suite run Id. *

* * @param suiteRunId * Gets the information about Device Advisor test suite run based on suite run Id. */ public void setSuiteRunId(String suiteRunId) { this.suiteRunId = suiteRunId; } /** *

* Gets the information about Device Advisor test suite run based on suite run Id. *

* * @return Gets the information about Device Advisor test suite run based on suite run Id. */ public String getSuiteRunId() { return this.suiteRunId; } /** *

* Gets the information about Device Advisor test suite run based on suite run Id. *

* * @param suiteRunId * Gets the information about Device Advisor test suite run based on suite run Id. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withSuiteRunId(String suiteRunId) { setSuiteRunId(suiteRunId); return this; } /** *

* The ARN of the suite run. *

* * @param suiteRunArn * The ARN of the suite run. */ public void setSuiteRunArn(String suiteRunArn) { this.suiteRunArn = suiteRunArn; } /** *

* The ARN of the suite run. *

* * @return The ARN of the suite run. */ public String getSuiteRunArn() { return this.suiteRunArn; } /** *

* The ARN of the suite run. *

* * @param suiteRunArn * The ARN of the suite run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withSuiteRunArn(String suiteRunArn) { setSuiteRunArn(suiteRunArn); return this; } /** *

* Gets the information about Device Advisor test suite run based on suite configuration. *

* * @param suiteRunConfiguration * Gets the information about Device Advisor test suite run based on suite configuration. */ public void setSuiteRunConfiguration(SuiteRunConfiguration suiteRunConfiguration) { this.suiteRunConfiguration = suiteRunConfiguration; } /** *

* Gets the information about Device Advisor test suite run based on suite configuration. *

* * @return Gets the information about Device Advisor test suite run based on suite configuration. */ public SuiteRunConfiguration getSuiteRunConfiguration() { return this.suiteRunConfiguration; } /** *

* Gets the information about Device Advisor test suite run based on suite configuration. *

* * @param suiteRunConfiguration * Gets the information about Device Advisor test suite run based on suite configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withSuiteRunConfiguration(SuiteRunConfiguration suiteRunConfiguration) { setSuiteRunConfiguration(suiteRunConfiguration); return this; } /** *

* Gets the information about Device Advisor test suite run based on test case runs. *

* * @param testResult * Gets the information about Device Advisor test suite run based on test case runs. */ public void setTestResult(TestResult testResult) { this.testResult = testResult; } /** *

* Gets the information about Device Advisor test suite run based on test case runs. *

* * @return Gets the information about Device Advisor test suite run based on test case runs. */ public TestResult getTestResult() { return this.testResult; } /** *

* Gets the information about Device Advisor test suite run based on test case runs. *

* * @param testResult * Gets the information about Device Advisor test suite run based on test case runs. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withTestResult(TestResult testResult) { setTestResult(testResult); return this; } /** *

* Gets the information about Device Advisor test suite run based on start time. *

* * @param startTime * Gets the information about Device Advisor test suite run based on start time. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* Gets the information about Device Advisor test suite run based on start time. *

* * @return Gets the information about Device Advisor test suite run based on start time. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* Gets the information about Device Advisor test suite run based on start time. *

* * @param startTime * Gets the information about Device Advisor test suite run based on start time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* Gets the information about Device Advisor test suite run based on end time. *

* * @param endTime * Gets the information about Device Advisor test suite run based on end time. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* Gets the information about Device Advisor test suite run based on end time. *

* * @return Gets the information about Device Advisor test suite run based on end time. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* Gets the information about Device Advisor test suite run based on end time. *

* * @param endTime * Gets the information about Device Advisor test suite run based on end time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* Gets the information about Device Advisor test suite run based on its status. *

* * @param status * Gets the information about Device Advisor test suite run based on its status. * @see SuiteRunStatus */ public void setStatus(String status) { this.status = status; } /** *

* Gets the information about Device Advisor test suite run based on its status. *

* * @return Gets the information about Device Advisor test suite run based on its status. * @see SuiteRunStatus */ public String getStatus() { return this.status; } /** *

* Gets the information about Device Advisor test suite run based on its status. *

* * @param status * Gets the information about Device Advisor test suite run based on its status. * @return Returns a reference to this object so that method calls can be chained together. * @see SuiteRunStatus */ public GetSuiteRunResult withStatus(String status) { setStatus(status); return this; } /** *

* Gets the information about Device Advisor test suite run based on its status. *

* * @param status * Gets the information about Device Advisor test suite run based on its status. * @return Returns a reference to this object so that method calls can be chained together. * @see SuiteRunStatus */ public GetSuiteRunResult withStatus(SuiteRunStatus status) { this.status = status.toString(); return this; } /** *

* Gets the information about Device Advisor test suite run based on error. *

* * @param errorReason * Gets the information about Device Advisor test suite run based on error. */ public void setErrorReason(String errorReason) { this.errorReason = errorReason; } /** *

* Gets the information about Device Advisor test suite run based on error. *

* * @return Gets the information about Device Advisor test suite run based on error. */ public String getErrorReason() { return this.errorReason; } /** *

* Gets the information about Device Advisor test suite run based on error. *

* * @param errorReason * Gets the information about Device Advisor test suite run based on error. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withErrorReason(String errorReason) { setErrorReason(errorReason); return this; } /** *

* The tags attached to the suite run. *

* * @return The tags attached to the suite run. */ public java.util.Map getTags() { return tags; } /** *

* The tags attached to the suite run. *

* * @param tags * The tags attached to the suite run. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags attached to the suite run. *

* * @param tags * The tags attached to the suite run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see GetSuiteRunResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public GetSuiteRunResult clearTagsEntries() { this.tags = null; return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSuiteDefinitionId() != null) sb.append("SuiteDefinitionId: ").append(getSuiteDefinitionId()).append(","); if (getSuiteDefinitionVersion() != null) sb.append("SuiteDefinitionVersion: ").append(getSuiteDefinitionVersion()).append(","); if (getSuiteRunId() != null) sb.append("SuiteRunId: ").append(getSuiteRunId()).append(","); if (getSuiteRunArn() != null) sb.append("SuiteRunArn: ").append(getSuiteRunArn()).append(","); if (getSuiteRunConfiguration() != null) sb.append("SuiteRunConfiguration: ").append(getSuiteRunConfiguration()).append(","); if (getTestResult() != null) sb.append("TestResult: ").append(getTestResult()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getErrorReason() != null) sb.append("ErrorReason: ").append(getErrorReason()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSuiteRunResult == false) return false; GetSuiteRunResult other = (GetSuiteRunResult) obj; if (other.getSuiteDefinitionId() == null ^ this.getSuiteDefinitionId() == null) return false; if (other.getSuiteDefinitionId() != null && other.getSuiteDefinitionId().equals(this.getSuiteDefinitionId()) == false) return false; if (other.getSuiteDefinitionVersion() == null ^ this.getSuiteDefinitionVersion() == null) return false; if (other.getSuiteDefinitionVersion() != null && other.getSuiteDefinitionVersion().equals(this.getSuiteDefinitionVersion()) == false) return false; if (other.getSuiteRunId() == null ^ this.getSuiteRunId() == null) return false; if (other.getSuiteRunId() != null && other.getSuiteRunId().equals(this.getSuiteRunId()) == false) return false; if (other.getSuiteRunArn() == null ^ this.getSuiteRunArn() == null) return false; if (other.getSuiteRunArn() != null && other.getSuiteRunArn().equals(this.getSuiteRunArn()) == false) return false; if (other.getSuiteRunConfiguration() == null ^ this.getSuiteRunConfiguration() == null) return false; if (other.getSuiteRunConfiguration() != null && other.getSuiteRunConfiguration().equals(this.getSuiteRunConfiguration()) == false) return false; if (other.getTestResult() == null ^ this.getTestResult() == null) return false; if (other.getTestResult() != null && other.getTestResult().equals(this.getTestResult()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getErrorReason() == null ^ this.getErrorReason() == null) return false; if (other.getErrorReason() != null && other.getErrorReason().equals(this.getErrorReason()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSuiteDefinitionId() == null) ? 0 : getSuiteDefinitionId().hashCode()); hashCode = prime * hashCode + ((getSuiteDefinitionVersion() == null) ? 0 : getSuiteDefinitionVersion().hashCode()); hashCode = prime * hashCode + ((getSuiteRunId() == null) ? 0 : getSuiteRunId().hashCode()); hashCode = prime * hashCode + ((getSuiteRunArn() == null) ? 0 : getSuiteRunArn().hashCode()); hashCode = prime * hashCode + ((getSuiteRunConfiguration() == null) ? 0 : getSuiteRunConfiguration().hashCode()); hashCode = prime * hashCode + ((getTestResult() == null) ? 0 : getTestResult().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getErrorReason() == null) ? 0 : getErrorReason().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public GetSuiteRunResult clone() { try { return (GetSuiteRunResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy