/* * Copyright 2018-2023 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.simspaceweaver.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StartSimulationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A value that you provide to ensure that repeated calls to this API operation using the same parameters complete
* only once. A ClientToken
is also known as an idempotency token. A ClientToken
* expires after 24 hours.
*
* The description of the simulation. *
*/ private String description; /** *
* The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d
* or D). The simulation stops when it reaches this limit. The maximum value is 14D
, or its equivalent
* in the other units. The default value is 14D
. A value equivalent to 0
makes the
* simulation immediately transition to Stopping
as soon as it reaches Started
.
*
* The name of the simulation. *
*/ private String name; /** ** The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to * perform actions. For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access * Management User Guide. *
*/ private String roleArn; /** ** The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SchemaS3Location
to start your simulation from a schema.
*
* If you provide a SchemaS3Location
then you can't provide a SnapshotS3Location
.
*
* The location of the snapshot .zip file in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SnapshotS3Location
to start your simulation from a snapshot.
*
* The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. *
*
* If you provide a SnapshotS3Location
then you can't provide a SchemaS3Location
.
*
* A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference. *
*/ private java.util.Map
* A value that you provide to ensure that repeated calls to this API operation using the same parameters complete
* only once. A ClientToken
is also known as an idempotency token. A ClientToken
* expires after 24 hours.
*
ClientToken
is also known as an idempotency token. A
* ClientToken
expires after 24 hours.
*/
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
/**
*
* A value that you provide to ensure that repeated calls to this API operation using the same parameters complete
* only once. A ClientToken
is also known as an idempotency token. A ClientToken
* expires after 24 hours.
*
ClientToken
is also known as an idempotency token. A
* ClientToken
expires after 24 hours.
*/
public String getClientToken() {
return this.clientToken;
}
/**
*
* A value that you provide to ensure that repeated calls to this API operation using the same parameters complete
* only once. A ClientToken
is also known as an idempotency token. A ClientToken
* expires after 24 hours.
*
ClientToken
is also known as an idempotency token. A
* ClientToken
expires after 24 hours.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSimulationRequest withClientToken(String clientToken) {
setClientToken(clientToken);
return this;
}
/**
* * The description of the simulation. *
* * @param description * The description of the simulation. */ public void setDescription(String description) { this.description = description; } /** ** The description of the simulation. *
* * @return The description of the simulation. */ public String getDescription() { return this.description; } /** ** The description of the simulation. *
* * @param description * The description of the simulation. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSimulationRequest withDescription(String description) { setDescription(description); return this; } /** *
* The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d
* or D). The simulation stops when it reaches this limit. The maximum value is 14D
, or its equivalent
* in the other units. The default value is 14D
. A value equivalent to 0
makes the
* simulation immediately transition to Stopping
as soon as it reaches Started
.
*
14D
, or
* its equivalent in the other units. The default value is 14D
. A value equivalent to
* 0
makes the simulation immediately transition to Stopping
as soon as it reaches
* Started
.
*/
public void setMaximumDuration(String maximumDuration) {
this.maximumDuration = maximumDuration;
}
/**
*
* The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d
* or D). The simulation stops when it reaches this limit. The maximum value is 14D
, or its equivalent
* in the other units. The default value is 14D
. A value equivalent to 0
makes the
* simulation immediately transition to Stopping
as soon as it reaches Started
.
*
14D
, or
* its equivalent in the other units. The default value is 14D
. A value equivalent to
* 0
makes the simulation immediately transition to Stopping
as soon as it reaches
* Started
.
*/
public String getMaximumDuration() {
return this.maximumDuration;
}
/**
*
* The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d
* or D). The simulation stops when it reaches this limit. The maximum value is 14D
, or its equivalent
* in the other units. The default value is 14D
. A value equivalent to 0
makes the
* simulation immediately transition to Stopping
as soon as it reaches Started
.
*
14D
, or
* its equivalent in the other units. The default value is 14D
. A value equivalent to
* 0
makes the simulation immediately transition to Stopping
as soon as it reaches
* Started
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSimulationRequest withMaximumDuration(String maximumDuration) {
setMaximumDuration(maximumDuration);
return this;
}
/**
* * The name of the simulation. *
* * @param name * The name of the simulation. */ public void setName(String name) { this.name = name; } /** ** The name of the simulation. *
* * @return The name of the simulation. */ public String getName() { return this.name; } /** ** The name of the simulation. *
* * @param name * The name of the simulation. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSimulationRequest withName(String name) { setName(name); return this; } /** ** The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to * perform actions. For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access * Management User Guide. *
* * @param roleArn * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation * assumes to perform actions. For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see * IAM roles in the Identity * and Access Management User Guide. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to * perform actions. For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access * Management User Guide. *
* * @return The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation * assumes to perform actions. For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see * IAM roles in the Identity * and Access Management User Guide. */ public String getRoleArn() { return this.roleArn; } /** ** The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to * perform actions. For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access * Management User Guide. *
* * @param roleArn * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation * assumes to perform actions. For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see * IAM roles in the Identity * and Access Management User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSimulationRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SchemaS3Location
to start your simulation from a schema.
*
* If you provide a SchemaS3Location
then you can't provide a SnapshotS3Location
.
*
* Provide a SchemaS3Location
to start your simulation from a schema.
*
* If you provide a SchemaS3Location
then you can't provide a SnapshotS3Location
.
*/
public void setSchemaS3Location(S3Location schemaS3Location) {
this.schemaS3Location = schemaS3Location;
}
/**
*
* The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SchemaS3Location
to start your simulation from a schema.
*
* If you provide a SchemaS3Location
then you can't provide a SnapshotS3Location
.
*
* Provide a SchemaS3Location
to start your simulation from a schema.
*
* If you provide a SchemaS3Location
then you can't provide a SnapshotS3Location
.
*/
public S3Location getSchemaS3Location() {
return this.schemaS3Location;
}
/**
*
* The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SchemaS3Location
to start your simulation from a schema.
*
* If you provide a SchemaS3Location
then you can't provide a SnapshotS3Location
.
*
* Provide a SchemaS3Location
to start your simulation from a schema.
*
* If you provide a SchemaS3Location
then you can't provide a SnapshotS3Location
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSimulationRequest withSchemaS3Location(S3Location schemaS3Location) {
setSchemaS3Location(schemaS3Location);
return this;
}
/**
*
* The location of the snapshot .zip file in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SnapshotS3Location
to start your simulation from a snapshot.
*
* The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. *
*
* If you provide a SnapshotS3Location
then you can't provide a SchemaS3Location
.
*
* Provide a SnapshotS3Location
to start your simulation from a snapshot.
*
* The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. *
*
* If you provide a SnapshotS3Location
then you can't provide a SchemaS3Location
.
*/
public void setSnapshotS3Location(S3Location snapshotS3Location) {
this.snapshotS3Location = snapshotS3Location;
}
/**
*
* The location of the snapshot .zip file in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SnapshotS3Location
to start your simulation from a snapshot.
*
* The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. *
*
* If you provide a SnapshotS3Location
then you can't provide a SchemaS3Location
.
*
* Provide a SnapshotS3Location
to start your simulation from a snapshot.
*
* The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. *
*
* If you provide a SnapshotS3Location
then you can't provide a SchemaS3Location
.
*/
public S3Location getSnapshotS3Location() {
return this.snapshotS3Location;
}
/**
*
* The location of the snapshot .zip file in Amazon Simple Storage Service (Amazon S3). For more information about * Amazon S3, see the Amazon Simple * Storage Service User Guide . *
*
* Provide a SnapshotS3Location
to start your simulation from a snapshot.
*
* The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. *
*
* If you provide a SnapshotS3Location
then you can't provide a SchemaS3Location
.
*
* Provide a SnapshotS3Location
to start your simulation from a snapshot.
*
* The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. *
*
* If you provide a SnapshotS3Location
then you can't provide a SchemaS3Location
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSimulationRequest withSnapshotS3Location(S3Location snapshotS3Location) {
setSnapshotS3Location(snapshotS3Location);
return this;
}
/**
*
* A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference. *
* * @return A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference. */ public java.util.Map* A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference. *
* * @param tags * A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference. */ public void setTags(java.util.Map* A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference. *
* * @param tags * A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSimulationRequest withTags(java.util.Map