@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 location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored.
|
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 location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored.
|
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 location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored.
|
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 location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. The storage
location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN that allows Amazon
GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same Region where you want to
create 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.
storageLocation
- The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. The
storage location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN
that allows Amazon GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same
Region where you want to create 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.public S3Location getStorageLocation()
The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. The storage
location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN that allows Amazon
GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same Region where you want to
create 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.
ObjectVersion
parameter to specify an earlier version.public CreateScriptRequest withStorageLocation(S3Location storageLocation)
The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. The storage
location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN that allows Amazon
GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same Region where you want to
create 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.
storageLocation
- The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. The
storage location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN
that allows Amazon GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same
Region where you want to create 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.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.