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

com.amazonaws.services.robomaker.model.FinishedWorldsSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS RoboMaker module holds the client classes that are used for communicating with AWS RoboMaker Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.robomaker.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about worlds that finished. *

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

* The total number of finished worlds. *

*/ private Integer finishedCount; /** *

* A list of worlds that succeeded. *

*/ private java.util.List succeededWorlds; /** *

* Information about worlds that failed. *

*/ private FailureSummary failureSummary; /** *

* The total number of finished worlds. *

* * @param finishedCount * The total number of finished worlds. */ public void setFinishedCount(Integer finishedCount) { this.finishedCount = finishedCount; } /** *

* The total number of finished worlds. *

* * @return The total number of finished worlds. */ public Integer getFinishedCount() { return this.finishedCount; } /** *

* The total number of finished worlds. *

* * @param finishedCount * The total number of finished worlds. * @return Returns a reference to this object so that method calls can be chained together. */ public FinishedWorldsSummary withFinishedCount(Integer finishedCount) { setFinishedCount(finishedCount); return this; } /** *

* A list of worlds that succeeded. *

* * @return A list of worlds that succeeded. */ public java.util.List getSucceededWorlds() { return succeededWorlds; } /** *

* A list of worlds that succeeded. *

* * @param succeededWorlds * A list of worlds that succeeded. */ public void setSucceededWorlds(java.util.Collection succeededWorlds) { if (succeededWorlds == null) { this.succeededWorlds = null; return; } this.succeededWorlds = new java.util.ArrayList(succeededWorlds); } /** *

* A list of worlds that succeeded. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSucceededWorlds(java.util.Collection)} or {@link #withSucceededWorlds(java.util.Collection)} if you * want to override the existing values. *

* * @param succeededWorlds * A list of worlds that succeeded. * @return Returns a reference to this object so that method calls can be chained together. */ public FinishedWorldsSummary withSucceededWorlds(String... succeededWorlds) { if (this.succeededWorlds == null) { setSucceededWorlds(new java.util.ArrayList(succeededWorlds.length)); } for (String ele : succeededWorlds) { this.succeededWorlds.add(ele); } return this; } /** *

* A list of worlds that succeeded. *

* * @param succeededWorlds * A list of worlds that succeeded. * @return Returns a reference to this object so that method calls can be chained together. */ public FinishedWorldsSummary withSucceededWorlds(java.util.Collection succeededWorlds) { setSucceededWorlds(succeededWorlds); return this; } /** *

* Information about worlds that failed. *

* * @param failureSummary * Information about worlds that failed. */ public void setFailureSummary(FailureSummary failureSummary) { this.failureSummary = failureSummary; } /** *

* Information about worlds that failed. *

* * @return Information about worlds that failed. */ public FailureSummary getFailureSummary() { return this.failureSummary; } /** *

* Information about worlds that failed. *

* * @param failureSummary * Information about worlds that failed. * @return Returns a reference to this object so that method calls can be chained together. */ public FinishedWorldsSummary withFailureSummary(FailureSummary failureSummary) { setFailureSummary(failureSummary); 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 (getFinishedCount() != null) sb.append("FinishedCount: ").append(getFinishedCount()).append(","); if (getSucceededWorlds() != null) sb.append("SucceededWorlds: ").append(getSucceededWorlds()).append(","); if (getFailureSummary() != null) sb.append("FailureSummary: ").append(getFailureSummary()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FinishedWorldsSummary == false) return false; FinishedWorldsSummary other = (FinishedWorldsSummary) obj; if (other.getFinishedCount() == null ^ this.getFinishedCount() == null) return false; if (other.getFinishedCount() != null && other.getFinishedCount().equals(this.getFinishedCount()) == false) return false; if (other.getSucceededWorlds() == null ^ this.getSucceededWorlds() == null) return false; if (other.getSucceededWorlds() != null && other.getSucceededWorlds().equals(this.getSucceededWorlds()) == false) return false; if (other.getFailureSummary() == null ^ this.getFailureSummary() == null) return false; if (other.getFailureSummary() != null && other.getFailureSummary().equals(this.getFailureSummary()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFinishedCount() == null) ? 0 : getFinishedCount().hashCode()); hashCode = prime * hashCode + ((getSucceededWorlds() == null) ? 0 : getSucceededWorlds().hashCode()); hashCode = prime * hashCode + ((getFailureSummary() == null) ? 0 : getFailureSummary().hashCode()); return hashCode; } @Override public FinishedWorldsSummary clone() { try { return (FinishedWorldsSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.robomaker.model.transform.FinishedWorldsSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy