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

com.amazonaws.services.robomaker.model.SimulationJobSummary 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;

/**
 * 

* Summary information for a simulation job. *

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

* The Amazon Resource Name (ARN) of the simulation job. *

*/ private String arn; /** *

* The time, in milliseconds since the epoch, when the simulation job was last updated. *

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

* The name of the simulation job. *

*/ private String name; /** *

* The status of the simulation job. *

*/ private String status; /** *

* A list of simulation job simulation application names. *

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

* A list of simulation job robot application names. *

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

* The names of the data sources. *

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

* The compute type for the simulation job summary. *

*/ private String computeType; /** *

* The Amazon Resource Name (ARN) of the simulation job. *

* * @param arn * The Amazon Resource Name (ARN) of the simulation job. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the simulation job. *

* * @return The Amazon Resource Name (ARN) of the simulation job. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the simulation job. *

* * @param arn * The Amazon Resource Name (ARN) of the simulation job. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withArn(String arn) { setArn(arn); return this; } /** *

* The time, in milliseconds since the epoch, when the simulation job was last updated. *

* * @param lastUpdatedAt * The time, in milliseconds since the epoch, when the simulation job was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* The time, in milliseconds since the epoch, when the simulation job was last updated. *

* * @return The time, in milliseconds since the epoch, when the simulation job was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* The time, in milliseconds since the epoch, when the simulation job was last updated. *

* * @param lastUpdatedAt * The time, in milliseconds since the epoch, when the simulation job was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** *

* The name of the simulation job. *

* * @param name * The name of the simulation job. */ public void setName(String name) { this.name = name; } /** *

* The name of the simulation job. *

* * @return The name of the simulation job. */ public String getName() { return this.name; } /** *

* The name of the simulation job. *

* * @param name * The name of the simulation job. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withName(String name) { setName(name); return this; } /** *

* The status of the simulation job. *

* * @param status * The status of the simulation job. * @see SimulationJobStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the simulation job. *

* * @return The status of the simulation job. * @see SimulationJobStatus */ public String getStatus() { return this.status; } /** *

* The status of the simulation job. *

* * @param status * The status of the simulation job. * @return Returns a reference to this object so that method calls can be chained together. * @see SimulationJobStatus */ public SimulationJobSummary withStatus(String status) { setStatus(status); return this; } /** *

* The status of the simulation job. *

* * @param status * The status of the simulation job. * @return Returns a reference to this object so that method calls can be chained together. * @see SimulationJobStatus */ public SimulationJobSummary withStatus(SimulationJobStatus status) { this.status = status.toString(); return this; } /** *

* A list of simulation job simulation application names. *

* * @return A list of simulation job simulation application names. */ public java.util.List getSimulationApplicationNames() { return simulationApplicationNames; } /** *

* A list of simulation job simulation application names. *

* * @param simulationApplicationNames * A list of simulation job simulation application names. */ public void setSimulationApplicationNames(java.util.Collection simulationApplicationNames) { if (simulationApplicationNames == null) { this.simulationApplicationNames = null; return; } this.simulationApplicationNames = new java.util.ArrayList(simulationApplicationNames); } /** *

* A list of simulation job simulation application names. *

*

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

* * @param simulationApplicationNames * A list of simulation job simulation application names. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withSimulationApplicationNames(String... simulationApplicationNames) { if (this.simulationApplicationNames == null) { setSimulationApplicationNames(new java.util.ArrayList(simulationApplicationNames.length)); } for (String ele : simulationApplicationNames) { this.simulationApplicationNames.add(ele); } return this; } /** *

* A list of simulation job simulation application names. *

* * @param simulationApplicationNames * A list of simulation job simulation application names. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withSimulationApplicationNames(java.util.Collection simulationApplicationNames) { setSimulationApplicationNames(simulationApplicationNames); return this; } /** *

* A list of simulation job robot application names. *

* * @return A list of simulation job robot application names. */ public java.util.List getRobotApplicationNames() { return robotApplicationNames; } /** *

* A list of simulation job robot application names. *

* * @param robotApplicationNames * A list of simulation job robot application names. */ public void setRobotApplicationNames(java.util.Collection robotApplicationNames) { if (robotApplicationNames == null) { this.robotApplicationNames = null; return; } this.robotApplicationNames = new java.util.ArrayList(robotApplicationNames); } /** *

* A list of simulation job robot application names. *

*

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

* * @param robotApplicationNames * A list of simulation job robot application names. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withRobotApplicationNames(String... robotApplicationNames) { if (this.robotApplicationNames == null) { setRobotApplicationNames(new java.util.ArrayList(robotApplicationNames.length)); } for (String ele : robotApplicationNames) { this.robotApplicationNames.add(ele); } return this; } /** *

* A list of simulation job robot application names. *

* * @param robotApplicationNames * A list of simulation job robot application names. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withRobotApplicationNames(java.util.Collection robotApplicationNames) { setRobotApplicationNames(robotApplicationNames); return this; } /** *

* The names of the data sources. *

* * @return The names of the data sources. */ public java.util.List getDataSourceNames() { return dataSourceNames; } /** *

* The names of the data sources. *

* * @param dataSourceNames * The names of the data sources. */ public void setDataSourceNames(java.util.Collection dataSourceNames) { if (dataSourceNames == null) { this.dataSourceNames = null; return; } this.dataSourceNames = new java.util.ArrayList(dataSourceNames); } /** *

* The names of the data sources. *

*

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

* * @param dataSourceNames * The names of the data sources. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withDataSourceNames(String... dataSourceNames) { if (this.dataSourceNames == null) { setDataSourceNames(new java.util.ArrayList(dataSourceNames.length)); } for (String ele : dataSourceNames) { this.dataSourceNames.add(ele); } return this; } /** *

* The names of the data sources. *

* * @param dataSourceNames * The names of the data sources. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobSummary withDataSourceNames(java.util.Collection dataSourceNames) { setDataSourceNames(dataSourceNames); return this; } /** *

* The compute type for the simulation job summary. *

* * @param computeType * The compute type for the simulation job summary. * @see ComputeType */ public void setComputeType(String computeType) { this.computeType = computeType; } /** *

* The compute type for the simulation job summary. *

* * @return The compute type for the simulation job summary. * @see ComputeType */ public String getComputeType() { return this.computeType; } /** *

* The compute type for the simulation job summary. *

* * @param computeType * The compute type for the simulation job summary. * @return Returns a reference to this object so that method calls can be chained together. * @see ComputeType */ public SimulationJobSummary withComputeType(String computeType) { setComputeType(computeType); return this; } /** *

* The compute type for the simulation job summary. *

* * @param computeType * The compute type for the simulation job summary. * @return Returns a reference to this object so that method calls can be chained together. * @see ComputeType */ public SimulationJobSummary withComputeType(ComputeType computeType) { this.computeType = computeType.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSimulationApplicationNames() != null) sb.append("SimulationApplicationNames: ").append(getSimulationApplicationNames()).append(","); if (getRobotApplicationNames() != null) sb.append("RobotApplicationNames: ").append(getRobotApplicationNames()).append(","); if (getDataSourceNames() != null) sb.append("DataSourceNames: ").append(getDataSourceNames()).append(","); if (getComputeType() != null) sb.append("ComputeType: ").append(getComputeType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SimulationJobSummary == false) return false; SimulationJobSummary other = (SimulationJobSummary) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.getSimulationApplicationNames() == null ^ this.getSimulationApplicationNames() == null) return false; if (other.getSimulationApplicationNames() != null && other.getSimulationApplicationNames().equals(this.getSimulationApplicationNames()) == false) return false; if (other.getRobotApplicationNames() == null ^ this.getRobotApplicationNames() == null) return false; if (other.getRobotApplicationNames() != null && other.getRobotApplicationNames().equals(this.getRobotApplicationNames()) == false) return false; if (other.getDataSourceNames() == null ^ this.getDataSourceNames() == null) return false; if (other.getDataSourceNames() != null && other.getDataSourceNames().equals(this.getDataSourceNames()) == false) return false; if (other.getComputeType() == null ^ this.getComputeType() == null) return false; if (other.getComputeType() != null && other.getComputeType().equals(this.getComputeType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSimulationApplicationNames() == null) ? 0 : getSimulationApplicationNames().hashCode()); hashCode = prime * hashCode + ((getRobotApplicationNames() == null) ? 0 : getRobotApplicationNames().hashCode()); hashCode = prime * hashCode + ((getDataSourceNames() == null) ? 0 : getDataSourceNames().hashCode()); hashCode = prime * hashCode + ((getComputeType() == null) ? 0 : getComputeType().hashCode()); return hashCode; } @Override public SimulationJobSummary clone() { try { return (SimulationJobSummary) 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.SimulationJobSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy