com.amazonaws.services.robomaker.model.DescribeSimulationJobResult 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;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeSimulationJobResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the simulation job.
*
*/
private String arn;
/**
*
* The name of the simulation job.
*
*/
private String name;
/**
*
* The 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 for the simulation job.
*
*/
private String failureBehavior;
/**
*
* The failure code of the simulation job if it failed:
*
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
*
*/
private String failureCode;
/**
*
* Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.
*
*/
private String failureReason;
/**
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*
*/
private String clientRequestToken;
/**
*
* Location for output files generated by the simulation job.
*
*/
private OutputLocation outputLocation;
/**
*
* The logging configuration.
*
*/
private LoggingConfig loggingConfig;
/**
*
* The maximum 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.
*
*/
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;
/**
*
* The list of all tags added to the specified simulation job.
*
*/
private java.util.Map tags;
/**
*
* The VPC configuration.
*
*/
private VPCConfigResponse vpcConfig;
/**
*
* The network interface information for the simulation job.
*
*/
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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult withLastUpdatedAt(java.util.Date lastUpdatedAt) {
setLastUpdatedAt(lastUpdatedAt);
return this;
}
/**
*
* The failure behavior for the simulation job.
*
*
* @param failureBehavior
* The failure behavior for the simulation job.
* @see FailureBehavior
*/
public void setFailureBehavior(String failureBehavior) {
this.failureBehavior = failureBehavior;
}
/**
*
* The failure behavior for the simulation job.
*
*
* @return The failure behavior for the simulation job.
* @see FailureBehavior
*/
public String getFailureBehavior() {
return this.failureBehavior;
}
/**
*
* The failure behavior for the simulation job.
*
*
* @param failureBehavior
* The failure behavior for the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FailureBehavior
*/
public DescribeSimulationJobResult withFailureBehavior(String failureBehavior) {
setFailureBehavior(failureBehavior);
return this;
}
/**
*
* The failure behavior for the simulation job.
*
*
* @param failureBehavior
* The failure behavior for the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FailureBehavior
*/
public DescribeSimulationJobResult withFailureBehavior(FailureBehavior failureBehavior) {
this.failureBehavior = failureBehavior.toString();
return this;
}
/**
*
* The failure code of the simulation job if it failed:
*
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
*
*
* @param failureCode
* The failure code of the simulation job if it failed:
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
* @see SimulationJobErrorCode
*/
public void setFailureCode(String failureCode) {
this.failureCode = failureCode;
}
/**
*
* The failure code of the simulation job if it failed:
*
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
*
*
* @return The failure code of the simulation job if it failed:
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
* @see SimulationJobErrorCode
*/
public String getFailureCode() {
return this.failureCode;
}
/**
*
* The failure code of the simulation job if it failed:
*
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
*
*
* @param failureCode
* The failure code of the simulation job if it failed:
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see SimulationJobErrorCode
*/
public DescribeSimulationJobResult withFailureCode(String failureCode) {
setFailureCode(failureCode);
return this;
}
/**
*
* The failure code of the simulation job if it failed:
*
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
*
*
* @param failureCode
* The failure code of the simulation job if it failed:
*
* - InternalServiceError
* -
*
* Internal service error.
*
*
* - RobotApplicationCrash
* -
*
* Robot application exited abnormally.
*
*
* - SimulationApplicationCrash
* -
*
* Simulation application exited abnormally.
*
*
* - BadPermissionsRobotApplication
* -
*
* Robot application bundle could not be downloaded.
*
*
* - BadPermissionsSimulationApplication
* -
*
* Simulation application bundle could not be downloaded.
*
*
* - BadPermissionsS3Output
* -
*
* Unable to publish outputs to customer-provided S3 bucket.
*
*
* - BadPermissionsCloudwatchLogs
* -
*
* Unable to publish logs to customer-provided CloudWatch Logs resource.
*
*
* - SubnetIpLimitExceeded
* -
*
* Subnet IP limit exceeded.
*
*
* - ENILimitExceeded
* -
*
* ENI limit exceeded.
*
*
* - BadPermissionsUserCredentials
* -
*
* Unable to use the Role provided.
*
*
* - InvalidBundleRobotApplication
* -
*
* Robot bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - InvalidBundleSimulationApplication
* -
*
* Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).
*
*
* - RobotApplicationVersionMismatchedEtag
* -
*
* Etag for RobotApplication does not match value during version creation.
*
*
* - SimulationApplicationVersionMismatchedEtag
* -
*
* Etag for SimulationApplication does not match value during version creation.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see SimulationJobErrorCode
*/
public DescribeSimulationJobResult withFailureCode(SimulationJobErrorCode failureCode) {
this.failureCode = failureCode.toString();
return this;
}
/**
*
* Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.
*
*
* @param failureReason
* Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.
*/
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
/**
*
* Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.
*
*
* @return Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.
*/
public String getFailureReason() {
return this.failureReason;
}
/**
*
* Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.
*
*
* @param failureReason
* Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSimulationJobResult withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*
*
* @param clientRequestToken
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*
*
* @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*
*
* @param clientRequestToken
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult withLoggingConfig(LoggingConfig loggingConfig) {
setLoggingConfig(loggingConfig);
return this;
}
/**
*
* The maximum job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*
*
* @param maxJobDurationInSeconds
* The maximum 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 job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*
*
* @return The maximum job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*/
public Long getMaxJobDurationInSeconds() {
return this.maxJobDurationInSeconds;
}
/**
*
* The maximum job duration in seconds. The value must be 8 days (691,200 seconds) or less.
*
*
* @param maxJobDurationInSeconds
* The maximum 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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.
*
*
* @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.
*/
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.
*
*
* @return The IAM role that allows the simulation instance to call the AWS APIs that are specified in its
* associated policies on your behalf.
*/
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.
*
*
* @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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult withDataSources(java.util.Collection dataSources) {
setDataSources(dataSources);
return this;
}
/**
*
* The list of all tags added to the specified simulation job.
*
*
* @return The list of all tags added to the specified simulation job.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The list of all tags added to the specified simulation job.
*
*
* @param tags
* The list of all tags added to the specified simulation job.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The list of all tags added to the specified simulation job.
*
*
* @param tags
* The list of all tags added to the specified simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSimulationJobResult withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see DescribeSimulationJobResult#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public DescribeSimulationJobResult 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 DescribeSimulationJobResult clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The VPC configuration.
*
*
* @param vpcConfig
* The VPC configuration.
*/
public void setVpcConfig(VPCConfigResponse vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* The VPC configuration.
*
*
* @return The VPC configuration.
*/
public VPCConfigResponse getVpcConfig() {
return this.vpcConfig;
}
/**
*
* The VPC configuration.
*
*
* @param vpcConfig
* The VPC configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSimulationJobResult withVpcConfig(VPCConfigResponse vpcConfig) {
setVpcConfig(vpcConfig);
return this;
}
/**
*
* The network interface information for the simulation job.
*
*
* @param networkInterface
* The network interface information for the simulation job.
*/
public void setNetworkInterface(NetworkInterface networkInterface) {
this.networkInterface = networkInterface;
}
/**
*
* The network interface information for the simulation job.
*
*
* @return The network interface information for the simulation job.
*/
public NetworkInterface getNetworkInterface() {
return this.networkInterface;
}
/**
*
* The network interface information for the simulation job.
*
*
* @param networkInterface
* The network interface information for the simulation job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeSimulationJobResult 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 DescribeSimulationJobResult 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 DescribeSimulationJobResult == false)
return false;
DescribeSimulationJobResult other = (DescribeSimulationJobResult) 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 DescribeSimulationJobResult clone() {
try {
return (DescribeSimulationJobResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}