com.amazonaws.services.robomaker.model.SimulationJob Maven / Gradle / Ivy
Show all versions of aws-java-sdk-robomaker Show documentation
/*
* 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 a simulation job.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SimulationJob implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) of the simulation job.
*
*/
private String arn;
/**
*
* The name of the simulation job.
*
*/
private String name;
/**
*
* Status of the simulation job.
*
*/
private String status;
/**
*
* The time, in milliseconds since the epoch, when the simulation job was last started.
*
*/
private java.util.Date lastStartedAt;
/**
*
* The time, in milliseconds since the epoch, when the simulation job was last updated.
*
*/
private java.util.Date lastUpdatedAt;
/**
*
* The failure behavior the simulation job.
*
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
*
*/
private String failureBehavior;
/**
*
* The failure code of the simulation job if it failed.
*
*/
private String failureCode;
/**
*
* The reason why the simulation job failed.
*
*/
private String failureReason;
/**
*
* A unique identifier for this SimulationJob
request.
*
*/
private String clientRequestToken;
/**
*
* Location for output files generated by the simulation job.
*
*/
private OutputLocation outputLocation;
/**
*
* The logging configuration.
*
*/
private LoggingConfig loggingConfig;
/**
*
* The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*
*/
private Long maxJobDurationInSeconds;
/**
*
* The simulation job execution duration in milliseconds.
*
*/
private Long simulationTimeMillis;
/**
*
* The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated
* policies on your behalf. This is how credentials are passed in to your simulation job.
*
*/
private String iamRole;
/**
*
* A list of robot applications.
*
*/
private java.util.List robotApplications;
/**
*
* A list of simulation applications.
*
*/
private java.util.List simulationApplications;
/**
*
* The data sources for the simulation job.
*
*/
private java.util.List dataSources;
/**
*
* A map that contains tag keys and tag values that are attached to the simulation job.
*
*/
private java.util.Map tags;
/**
*
* VPC configuration information.
*
*/
private VPCConfigResponse vpcConfig;
/**
*
* Information about a network interface.
*
*/
private NetworkInterface networkInterface;
/**
*
* Compute information for the simulation job
*
*/
private ComputeResponse compute;
/**
*
* 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 SimulationJob withArn(String arn) {
setArn(arn);
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 SimulationJob withName(String name) {
setName(name);
return this;
}
/**
*
* Status of the simulation job.
*
*
* @param status
* Status of the simulation job.
* @see SimulationJobStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Status of the simulation job.
*
*
* @return Status of the simulation job.
* @see SimulationJobStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Status of the simulation job.
*
*
* @param status
* Status of the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SimulationJobStatus
*/
public SimulationJob withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Status of the simulation job.
*
*
* @param status
* Status of the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SimulationJobStatus
*/
public SimulationJob withStatus(SimulationJobStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The time, in milliseconds since the epoch, when the simulation job was last started.
*
*
* @param lastStartedAt
* The time, in milliseconds since the epoch, when the simulation job was last started.
*/
public void setLastStartedAt(java.util.Date lastStartedAt) {
this.lastStartedAt = lastStartedAt;
}
/**
*
* The time, in milliseconds since the epoch, when the simulation job was last started.
*
*
* @return The time, in milliseconds since the epoch, when the simulation job was last started.
*/
public java.util.Date getLastStartedAt() {
return this.lastStartedAt;
}
/**
*
* The time, in milliseconds since the epoch, when the simulation job was last started.
*
*
* @param lastStartedAt
* The time, in milliseconds since the epoch, when the simulation job was last started.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withLastStartedAt(java.util.Date lastStartedAt) {
setLastStartedAt(lastStartedAt);
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 SimulationJob withLastUpdatedAt(java.util.Date lastUpdatedAt) {
setLastUpdatedAt(lastUpdatedAt);
return this;
}
/**
*
* The failure behavior the simulation job.
*
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
*
*
* @param failureBehavior
* The failure behavior the simulation job.
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
* @see FailureBehavior
*/
public void setFailureBehavior(String failureBehavior) {
this.failureBehavior = failureBehavior;
}
/**
*
* The failure behavior the simulation job.
*
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
*
*
* @return The failure behavior the simulation job.
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
* @see FailureBehavior
*/
public String getFailureBehavior() {
return this.failureBehavior;
}
/**
*
* The failure behavior the simulation job.
*
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
*
*
* @param failureBehavior
* The failure behavior the simulation job.
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see FailureBehavior
*/
public SimulationJob withFailureBehavior(String failureBehavior) {
setFailureBehavior(failureBehavior);
return this;
}
/**
*
* The failure behavior the simulation job.
*
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
*
*
* @param failureBehavior
* The failure behavior the simulation job.
*
* - Continue
* -
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
*
* - Fail
* -
*
* Stop the simulation job and terminate the instance.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see FailureBehavior
*/
public SimulationJob withFailureBehavior(FailureBehavior failureBehavior) {
this.failureBehavior = failureBehavior.toString();
return this;
}
/**
*
* The failure code of the simulation job if it failed.
*
*
* @param failureCode
* The failure code of the simulation job if it failed.
* @see SimulationJobErrorCode
*/
public void setFailureCode(String failureCode) {
this.failureCode = failureCode;
}
/**
*
* The failure code of the simulation job if it failed.
*
*
* @return The failure code of the simulation job if it failed.
* @see SimulationJobErrorCode
*/
public String getFailureCode() {
return this.failureCode;
}
/**
*
* The failure code of the simulation job if it failed.
*
*
* @param failureCode
* The failure code of the simulation job if it failed.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SimulationJobErrorCode
*/
public SimulationJob withFailureCode(String failureCode) {
setFailureCode(failureCode);
return this;
}
/**
*
* The failure code of the simulation job if it failed.
*
*
* @param failureCode
* The failure code of the simulation job if it failed.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SimulationJobErrorCode
*/
public SimulationJob withFailureCode(SimulationJobErrorCode failureCode) {
this.failureCode = failureCode.toString();
return this;
}
/**
*
* The reason why the simulation job failed.
*
*
* @param failureReason
* The reason why the simulation job failed.
*/
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
/**
*
* The reason why the simulation job failed.
*
*
* @return The reason why the simulation job failed.
*/
public String getFailureReason() {
return this.failureReason;
}
/**
*
* The reason why the simulation job failed.
*
*
* @param failureReason
* The reason why the simulation job failed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
*
* A unique identifier for this SimulationJob
request.
*
*
* @param clientRequestToken
* A unique identifier for this SimulationJob
request.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* A unique identifier for this SimulationJob
request.
*
*
* @return A unique identifier for this SimulationJob
request.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* A unique identifier for this SimulationJob
request.
*
*
* @param clientRequestToken
* A unique identifier for this SimulationJob
request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
return this;
}
/**
*
* Location for output files generated by the simulation job.
*
*
* @param outputLocation
* Location for output files generated by the simulation job.
*/
public void setOutputLocation(OutputLocation outputLocation) {
this.outputLocation = outputLocation;
}
/**
*
* Location for output files generated by the simulation job.
*
*
* @return Location for output files generated by the simulation job.
*/
public OutputLocation getOutputLocation() {
return this.outputLocation;
}
/**
*
* Location for output files generated by the simulation job.
*
*
* @param outputLocation
* Location for output files generated by the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withOutputLocation(OutputLocation outputLocation) {
setOutputLocation(outputLocation);
return this;
}
/**
*
* The logging configuration.
*
*
* @param loggingConfig
* The logging configuration.
*/
public void setLoggingConfig(LoggingConfig loggingConfig) {
this.loggingConfig = loggingConfig;
}
/**
*
* The logging configuration.
*
*
* @return The logging configuration.
*/
public LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
/**
*
* The logging configuration.
*
*
* @param loggingConfig
* The logging configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withLoggingConfig(LoggingConfig loggingConfig) {
setLoggingConfig(loggingConfig);
return this;
}
/**
*
* The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*
*
* @param maxJobDurationInSeconds
* The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*/
public void setMaxJobDurationInSeconds(Long maxJobDurationInSeconds) {
this.maxJobDurationInSeconds = maxJobDurationInSeconds;
}
/**
*
* The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*
*
* @return The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*/
public Long getMaxJobDurationInSeconds() {
return this.maxJobDurationInSeconds;
}
/**
*
* The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*
*
* @param maxJobDurationInSeconds
* The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withMaxJobDurationInSeconds(Long maxJobDurationInSeconds) {
setMaxJobDurationInSeconds(maxJobDurationInSeconds);
return this;
}
/**
*
* The simulation job execution duration in milliseconds.
*
*
* @param simulationTimeMillis
* The simulation job execution duration in milliseconds.
*/
public void setSimulationTimeMillis(Long simulationTimeMillis) {
this.simulationTimeMillis = simulationTimeMillis;
}
/**
*
* The simulation job execution duration in milliseconds.
*
*
* @return The simulation job execution duration in milliseconds.
*/
public Long getSimulationTimeMillis() {
return this.simulationTimeMillis;
}
/**
*
* The simulation job execution duration in milliseconds.
*
*
* @param simulationTimeMillis
* The simulation job execution duration in milliseconds.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withSimulationTimeMillis(Long simulationTimeMillis) {
setSimulationTimeMillis(simulationTimeMillis);
return this;
}
/**
*
* The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated
* policies on your behalf. This is how credentials are passed in to your simulation job.
*
*
* @param iamRole
* The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated
* policies on your behalf. This is how credentials are passed in to your simulation job.
*/
public void setIamRole(String iamRole) {
this.iamRole = iamRole;
}
/**
*
* The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated
* policies on your behalf. This is how credentials are passed in to your simulation job.
*
*
* @return The IAM role that allows the simulation instance to call the AWS APIs that are specified in its
* associated policies on your behalf. This is how credentials are passed in to your simulation job.
*/
public String getIamRole() {
return this.iamRole;
}
/**
*
* The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated
* policies on your behalf. This is how credentials are passed in to your simulation job.
*
*
* @param iamRole
* The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated
* policies on your behalf. This is how credentials are passed in to your simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withIamRole(String iamRole) {
setIamRole(iamRole);
return this;
}
/**
*
* A list of robot applications.
*
*
* @return A list of robot applications.
*/
public java.util.List getRobotApplications() {
return robotApplications;
}
/**
*
* A list of robot applications.
*
*
* @param robotApplications
* A list of robot applications.
*/
public void setRobotApplications(java.util.Collection robotApplications) {
if (robotApplications == null) {
this.robotApplications = null;
return;
}
this.robotApplications = new java.util.ArrayList(robotApplications);
}
/**
*
* A list of robot applications.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRobotApplications(java.util.Collection)} or {@link #withRobotApplications(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param robotApplications
* A list of robot applications.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withRobotApplications(RobotApplicationConfig... robotApplications) {
if (this.robotApplications == null) {
setRobotApplications(new java.util.ArrayList(robotApplications.length));
}
for (RobotApplicationConfig ele : robotApplications) {
this.robotApplications.add(ele);
}
return this;
}
/**
*
* A list of robot applications.
*
*
* @param robotApplications
* A list of robot applications.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withRobotApplications(java.util.Collection robotApplications) {
setRobotApplications(robotApplications);
return this;
}
/**
*
* A list of simulation applications.
*
*
* @return A list of simulation applications.
*/
public java.util.List getSimulationApplications() {
return simulationApplications;
}
/**
*
* A list of simulation applications.
*
*
* @param simulationApplications
* A list of simulation applications.
*/
public void setSimulationApplications(java.util.Collection simulationApplications) {
if (simulationApplications == null) {
this.simulationApplications = null;
return;
}
this.simulationApplications = new java.util.ArrayList(simulationApplications);
}
/**
*
* A list of simulation applications.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSimulationApplications(java.util.Collection)} or
* {@link #withSimulationApplications(java.util.Collection)} if you want to override the existing values.
*
*
* @param simulationApplications
* A list of simulation applications.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withSimulationApplications(SimulationApplicationConfig... simulationApplications) {
if (this.simulationApplications == null) {
setSimulationApplications(new java.util.ArrayList(simulationApplications.length));
}
for (SimulationApplicationConfig ele : simulationApplications) {
this.simulationApplications.add(ele);
}
return this;
}
/**
*
* A list of simulation applications.
*
*
* @param simulationApplications
* A list of simulation applications.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withSimulationApplications(java.util.Collection simulationApplications) {
setSimulationApplications(simulationApplications);
return this;
}
/**
*
* The data sources for the simulation job.
*
*
* @return The data sources for the simulation job.
*/
public java.util.List getDataSources() {
return dataSources;
}
/**
*
* The data sources for the simulation job.
*
*
* @param dataSources
* The data sources for the simulation job.
*/
public void setDataSources(java.util.Collection dataSources) {
if (dataSources == null) {
this.dataSources = null;
return;
}
this.dataSources = new java.util.ArrayList(dataSources);
}
/**
*
* The data sources for the simulation job.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDataSources(java.util.Collection)} or {@link #withDataSources(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param dataSources
* The data sources for the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withDataSources(DataSource... dataSources) {
if (this.dataSources == null) {
setDataSources(new java.util.ArrayList(dataSources.length));
}
for (DataSource ele : dataSources) {
this.dataSources.add(ele);
}
return this;
}
/**
*
* The data sources for the simulation job.
*
*
* @param dataSources
* The data sources for the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withDataSources(java.util.Collection dataSources) {
setDataSources(dataSources);
return this;
}
/**
*
* A map that contains tag keys and tag values that are attached to the simulation job.
*
*
* @return A map that contains tag keys and tag values that are attached to the simulation job.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* A map that contains tag keys and tag values that are attached to the simulation job.
*
*
* @param tags
* A map that contains tag keys and tag values that are attached to the simulation job.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* A map that contains tag keys and tag values that are attached to the simulation job.
*
*
* @param tags
* A map that contains tag keys and tag values that are attached to the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see SimulationJob#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob 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 SimulationJob clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* VPC configuration information.
*
*
* @param vpcConfig
* VPC configuration information.
*/
public void setVpcConfig(VPCConfigResponse vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* VPC configuration information.
*
*
* @return VPC configuration information.
*/
public VPCConfigResponse getVpcConfig() {
return this.vpcConfig;
}
/**
*
* VPC configuration information.
*
*
* @param vpcConfig
* VPC configuration information.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withVpcConfig(VPCConfigResponse vpcConfig) {
setVpcConfig(vpcConfig);
return this;
}
/**
*
* Information about a network interface.
*
*
* @param networkInterface
* Information about a network interface.
*/
public void setNetworkInterface(NetworkInterface networkInterface) {
this.networkInterface = networkInterface;
}
/**
*
* Information about a network interface.
*
*
* @return Information about a network interface.
*/
public NetworkInterface getNetworkInterface() {
return this.networkInterface;
}
/**
*
* Information about a network interface.
*
*
* @param networkInterface
* Information about a network interface.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withNetworkInterface(NetworkInterface networkInterface) {
setNetworkInterface(networkInterface);
return this;
}
/**
*
* Compute information for the simulation job
*
*
* @param compute
* Compute information for the simulation job
*/
public void setCompute(ComputeResponse compute) {
this.compute = compute;
}
/**
*
* Compute information for the simulation job
*
*
* @return Compute information for the simulation job
*/
public ComputeResponse getCompute() {
return this.compute;
}
/**
*
* Compute information for the simulation job
*
*
* @param compute
* Compute information for the simulation job
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SimulationJob withCompute(ComputeResponse compute) {
setCompute(compute);
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 (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getLastStartedAt() != null)
sb.append("LastStartedAt: ").append(getLastStartedAt()).append(",");
if (getLastUpdatedAt() != null)
sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(",");
if (getFailureBehavior() != null)
sb.append("FailureBehavior: ").append(getFailureBehavior()).append(",");
if (getFailureCode() != null)
sb.append("FailureCode: ").append(getFailureCode()).append(",");
if (getFailureReason() != null)
sb.append("FailureReason: ").append(getFailureReason()).append(",");
if (getClientRequestToken() != null)
sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(",");
if (getOutputLocation() != null)
sb.append("OutputLocation: ").append(getOutputLocation()).append(",");
if (getLoggingConfig() != null)
sb.append("LoggingConfig: ").append(getLoggingConfig()).append(",");
if (getMaxJobDurationInSeconds() != null)
sb.append("MaxJobDurationInSeconds: ").append(getMaxJobDurationInSeconds()).append(",");
if (getSimulationTimeMillis() != null)
sb.append("SimulationTimeMillis: ").append(getSimulationTimeMillis()).append(",");
if (getIamRole() != null)
sb.append("IamRole: ").append(getIamRole()).append(",");
if (getRobotApplications() != null)
sb.append("RobotApplications: ").append(getRobotApplications()).append(",");
if (getSimulationApplications() != null)
sb.append("SimulationApplications: ").append(getSimulationApplications()).append(",");
if (getDataSources() != null)
sb.append("DataSources: ").append(getDataSources()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getVpcConfig() != null)
sb.append("VpcConfig: ").append(getVpcConfig()).append(",");
if (getNetworkInterface() != null)
sb.append("NetworkInterface: ").append(getNetworkInterface()).append(",");
if (getCompute() != null)
sb.append("Compute: ").append(getCompute());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SimulationJob == false)
return false;
SimulationJob other = (SimulationJob) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getLastStartedAt() == null ^ this.getLastStartedAt() == null)
return false;
if (other.getLastStartedAt() != null && other.getLastStartedAt().equals(this.getLastStartedAt()) == 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.getFailureBehavior() == null ^ this.getFailureBehavior() == null)
return false;
if (other.getFailureBehavior() != null && other.getFailureBehavior().equals(this.getFailureBehavior()) == false)
return false;
if (other.getFailureCode() == null ^ this.getFailureCode() == null)
return false;
if (other.getFailureCode() != null && other.getFailureCode().equals(this.getFailureCode()) == false)
return false;
if (other.getFailureReason() == null ^ this.getFailureReason() == null)
return false;
if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false)
return false;
if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
return false;
if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
return false;
if (other.getOutputLocation() == null ^ this.getOutputLocation() == null)
return false;
if (other.getOutputLocation() != null && other.getOutputLocation().equals(this.getOutputLocation()) == false)
return false;
if (other.getLoggingConfig() == null ^ this.getLoggingConfig() == null)
return false;
if (other.getLoggingConfig() != null && other.getLoggingConfig().equals(this.getLoggingConfig()) == false)
return false;
if (other.getMaxJobDurationInSeconds() == null ^ this.getMaxJobDurationInSeconds() == null)
return false;
if (other.getMaxJobDurationInSeconds() != null && other.getMaxJobDurationInSeconds().equals(this.getMaxJobDurationInSeconds()) == false)
return false;
if (other.getSimulationTimeMillis() == null ^ this.getSimulationTimeMillis() == null)
return false;
if (other.getSimulationTimeMillis() != null && other.getSimulationTimeMillis().equals(this.getSimulationTimeMillis()) == false)
return false;
if (other.getIamRole() == null ^ this.getIamRole() == null)
return false;
if (other.getIamRole() != null && other.getIamRole().equals(this.getIamRole()) == false)
return false;
if (other.getRobotApplications() == null ^ this.getRobotApplications() == null)
return false;
if (other.getRobotApplications() != null && other.getRobotApplications().equals(this.getRobotApplications()) == false)
return false;
if (other.getSimulationApplications() == null ^ this.getSimulationApplications() == null)
return false;
if (other.getSimulationApplications() != null && other.getSimulationApplications().equals(this.getSimulationApplications()) == false)
return false;
if (other.getDataSources() == null ^ this.getDataSources() == null)
return false;
if (other.getDataSources() != null && other.getDataSources().equals(this.getDataSources()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getVpcConfig() == null ^ this.getVpcConfig() == null)
return false;
if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false)
return false;
if (other.getNetworkInterface() == null ^ this.getNetworkInterface() == null)
return false;
if (other.getNetworkInterface() != null && other.getNetworkInterface().equals(this.getNetworkInterface()) == false)
return false;
if (other.getCompute() == null ^ this.getCompute() == null)
return false;
if (other.getCompute() != null && other.getCompute().equals(this.getCompute()) == 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 + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getLastStartedAt() == null) ? 0 : getLastStartedAt().hashCode());
hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode());
hashCode = prime * hashCode + ((getFailureBehavior() == null) ? 0 : getFailureBehavior().hashCode());
hashCode = prime * hashCode + ((getFailureCode() == null) ? 0 : getFailureCode().hashCode());
hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode());
hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
hashCode = prime * hashCode + ((getOutputLocation() == null) ? 0 : getOutputLocation().hashCode());
hashCode = prime * hashCode + ((getLoggingConfig() == null) ? 0 : getLoggingConfig().hashCode());
hashCode = prime * hashCode + ((getMaxJobDurationInSeconds() == null) ? 0 : getMaxJobDurationInSeconds().hashCode());
hashCode = prime * hashCode + ((getSimulationTimeMillis() == null) ? 0 : getSimulationTimeMillis().hashCode());
hashCode = prime * hashCode + ((getIamRole() == null) ? 0 : getIamRole().hashCode());
hashCode = prime * hashCode + ((getRobotApplications() == null) ? 0 : getRobotApplications().hashCode());
hashCode = prime * hashCode + ((getSimulationApplications() == null) ? 0 : getSimulationApplications().hashCode());
hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode());
hashCode = prime * hashCode + ((getNetworkInterface() == null) ? 0 : getNetworkInterface().hashCode());
hashCode = prime * hashCode + ((getCompute() == null) ? 0 : getCompute().hashCode());
return hashCode;
}
@Override
public SimulationJob clone() {
try {
return (SimulationJob) 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.SimulationJobMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}