@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateScriptRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateScriptRequest() |
Modifier and Type | Method and Description |
---|---|
CreateScriptRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getName()
A descriptive label that is associated with a script.
|
S3Location |
getStorageLocation()
The Amazon S3 location of your Realtime scripts.
|
List<Tag> |
getTags()
A list of labels to assign to the new script resource.
|
String |
getVersion()
The version that is associated with a build or script.
|
ByteBuffer |
getZipFile()
A data object containing your Realtime scripts and dependencies as a zip file.
|
int |
hashCode() |
void |
setName(String name)
A descriptive label that is associated with a script.
|
void |
setStorageLocation(S3Location storageLocation)
The Amazon S3 location of your Realtime scripts.
|
void |
setTags(Collection<Tag> tags)
A list of labels to assign to the new script resource.
|
void |
setVersion(String version)
The version that is associated with a build or script.
|
void |
setZipFile(ByteBuffer zipFile)
A data object containing your Realtime scripts and dependencies as a zip file.
|
String |
toString()
Returns a string representation of this object.
|
CreateScriptRequest |
withName(String name)
A descriptive label that is associated with a script.
|
CreateScriptRequest |
withStorageLocation(S3Location storageLocation)
The Amazon S3 location of your Realtime scripts.
|
CreateScriptRequest |
withTags(Collection<Tag> tags)
A list of labels to assign to the new script resource.
|
CreateScriptRequest |
withTags(Tag... tags)
A list of labels to assign to the new script resource.
|
CreateScriptRequest |
withVersion(String version)
The version that is associated with a build or script.
|
CreateScriptRequest |
withZipFile(ByteBuffer zipFile)
A data object containing your Realtime scripts and dependencies as a zip file.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
A descriptive label that is associated with a script. Script names do not need to be unique. You can use UpdateScript to change this value later.
name
- A descriptive label that is associated with a script. Script names do not need to be unique. You can use
UpdateScript to change this value later.public String getName()
A descriptive label that is associated with a script. Script names do not need to be unique. You can use UpdateScript to change this value later.
public CreateScriptRequest withName(String name)
A descriptive label that is associated with a script. Script names do not need to be unique. You can use UpdateScript to change this value later.
name
- A descriptive label that is associated with a script. Script names do not need to be unique. You can use
UpdateScript to change this value later.public void setVersion(String version)
The version that is associated with a build or script. Version strings do not need to be unique. You can use UpdateScript to change this value later.
version
- The version that is associated with a build or script. Version strings do not need to be unique. You can
use UpdateScript to change this value later.public String getVersion()
The version that is associated with a build or script. Version strings do not need to be unique. You can use UpdateScript to change this value later.
public CreateScriptRequest withVersion(String version)
The version that is associated with a build or script. Version strings do not need to be unique. You can use UpdateScript to change this value later.
version
- The version that is associated with a build or script. Version strings do not need to be unique. You can
use UpdateScript to change this value later.public void setStorageLocation(S3Location storageLocation)
The Amazon S3 location of your Realtime scripts. The storage location must specify the S3 bucket name, the zip
file name (the "key"), and an IAM role ARN that allows Amazon GameLift to access the S3 storage location. The S3
bucket must be in the same Region where you are creating a new script. By default, Amazon GameLift uploads the
latest version of the zip file; if you have S3 object versioning turned on, you can use the
ObjectVersion
parameter to specify an earlier version. To call this operation with a storage
location, you must have IAM PassRole permission. For more details on IAM roles and PassRole permissions, see Set up a role for
GameLift access.
storageLocation
- The Amazon S3 location of your Realtime scripts. The storage location must specify the S3 bucket name, the
zip file name (the "key"), and an IAM role ARN that allows Amazon GameLift to access the S3 storage
location. The S3 bucket must be in the same Region where you are creating a new script. By default, Amazon
GameLift uploads the latest version of the zip file; if you have S3 object versioning turned on, you can
use the ObjectVersion
parameter to specify an earlier version. To call this operation with a
storage location, you must have IAM PassRole permission. For more details on IAM roles and PassRole
permissions, see Set up a role for
GameLift access.public S3Location getStorageLocation()
The Amazon S3 location of your Realtime scripts. The storage location must specify the S3 bucket name, the zip
file name (the "key"), and an IAM role ARN that allows Amazon GameLift to access the S3 storage location. The S3
bucket must be in the same Region where you are creating a new script. By default, Amazon GameLift uploads the
latest version of the zip file; if you have S3 object versioning turned on, you can use the
ObjectVersion
parameter to specify an earlier version. To call this operation with a storage
location, you must have IAM PassRole permission. For more details on IAM roles and PassRole permissions, see Set up a role for
GameLift access.
ObjectVersion
parameter to specify an earlier version. To call this
operation with a storage location, you must have IAM PassRole permission. For more details on IAM roles
and PassRole permissions, see Set up a role for
GameLift access.public CreateScriptRequest withStorageLocation(S3Location storageLocation)
The Amazon S3 location of your Realtime scripts. The storage location must specify the S3 bucket name, the zip
file name (the "key"), and an IAM role ARN that allows Amazon GameLift to access the S3 storage location. The S3
bucket must be in the same Region where you are creating a new script. By default, Amazon GameLift uploads the
latest version of the zip file; if you have S3 object versioning turned on, you can use the
ObjectVersion
parameter to specify an earlier version. To call this operation with a storage
location, you must have IAM PassRole permission. For more details on IAM roles and PassRole permissions, see Set up a role for
GameLift access.
storageLocation
- The Amazon S3 location of your Realtime scripts. The storage location must specify the S3 bucket name, the
zip file name (the "key"), and an IAM role ARN that allows Amazon GameLift to access the S3 storage
location. The S3 bucket must be in the same Region where you are creating a new script. By default, Amazon
GameLift uploads the latest version of the zip file; if you have S3 object versioning turned on, you can
use the ObjectVersion
parameter to specify an earlier version. To call this operation with a
storage location, you must have IAM PassRole permission. For more details on IAM roles and PassRole
permissions, see Set up a role for
GameLift access.public void setZipFile(ByteBuffer zipFile)
A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB.
When using the AWS CLI tool to create a script, this parameter is set to the zip file name. It must be prepended
with the string "fileb://" to indicate that the file data is a binary object. For example:
--zip-file fileb://myRealtimeScript.zip
.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
zipFile
- A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one
or multiple files. Maximum size of a zip file is 5 MB.
When using the AWS CLI tool to create a script, this parameter is set to the zip file name. It must be
prepended with the string "fileb://" to indicate that the file data is a binary object. For example:
--zip-file fileb://myRealtimeScript.zip
.
public ByteBuffer getZipFile()
A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB.
When using the AWS CLI tool to create a script, this parameter is set to the zip file name. It must be prepended
with the string "fileb://" to indicate that the file data is a binary object. For example:
--zip-file fileb://myRealtimeScript.zip
.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
When using the AWS CLI tool to create a script, this parameter is set to the zip file name. It must be
prepended with the string "fileb://" to indicate that the file data is a binary object. For example:
--zip-file fileb://myRealtimeScript.zip
.
public CreateScriptRequest withZipFile(ByteBuffer zipFile)
A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB.
When using the AWS CLI tool to create a script, this parameter is set to the zip file name. It must be prepended
with the string "fileb://" to indicate that the file data is a binary object. For example:
--zip-file fileb://myRealtimeScript.zip
.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
zipFile
- A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one
or multiple files. Maximum size of a zip file is 5 MB.
When using the AWS CLI tool to create a script, this parameter is set to the zip file name. It must be
prepended with the string "fileb://" to indicate that the file data is a binary object. For example:
--zip-file fileb://myRealtimeScript.zip
.
public List<Tag> getTags()
A list of labels to assign to the new script resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.
public void setTags(Collection<Tag> tags)
A list of labels to assign to the new script resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.
tags
- A list of labels to assign to the new script resource. Tags are developer-defined key-value pairs. Tagging
AWS resources are useful for resource management, access management and cost allocation. For more
information, see Tagging AWS
Resources in the AWS General Reference. Once the resource is created, you can use
TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags.
The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.public CreateScriptRequest withTags(Tag... tags)
A list of labels to assign to the new script resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of labels to assign to the new script resource. Tags are developer-defined key-value pairs. Tagging
AWS resources are useful for resource management, access management and cost allocation. For more
information, see Tagging AWS
Resources in the AWS General Reference. Once the resource is created, you can use
TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags.
The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.public CreateScriptRequest withTags(Collection<Tag> tags)
A list of labels to assign to the new script resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.
tags
- A list of labels to assign to the new script resource. Tags are developer-defined key-value pairs. Tagging
AWS resources are useful for resource management, access management and cost allocation. For more
information, see Tagging AWS
Resources in the AWS General Reference. Once the resource is created, you can use
TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags.
The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.public String toString()
toString
in class Object
Object.toString()
public CreateScriptRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()