@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateScriptRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateScriptRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateScriptRequest |
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.
|
String |
getScriptId()
A unique identifier for a Realtime script to update.
|
S3Location |
getStorageLocation()
The Amazon S3 location of your Realtime scripts.
|
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 |
setScriptId(String scriptId)
A unique identifier for a Realtime script to update.
|
void |
setStorageLocation(S3Location storageLocation)
The Amazon S3 location of your Realtime scripts.
|
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.
|
UpdateScriptRequest |
withName(String name)
A descriptive label that is associated with a script.
|
UpdateScriptRequest |
withScriptId(String scriptId)
A unique identifier for a Realtime script to update.
|
UpdateScriptRequest |
withStorageLocation(S3Location storageLocation)
The Amazon S3 location of your Realtime scripts.
|
UpdateScriptRequest |
withVersion(String version)
The version that is associated with a build or script.
|
UpdateScriptRequest |
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 setScriptId(String scriptId)
A unique identifier for a Realtime script to update. You can use either the script ID or ARN value.
scriptId
- A unique identifier for a Realtime script to update. You can use either the script ID or ARN value.public String getScriptId()
A unique identifier for a Realtime script to update. You can use either the script ID or ARN value.
public UpdateScriptRequest withScriptId(String scriptId)
A unique identifier for a Realtime script to update. You can use either the script ID or ARN value.
scriptId
- A unique identifier for a Realtime script to update. You can use either the script ID or ARN value.public void setName(String name)
A descriptive label that is associated with a script. Script names do not need to be unique.
name
- A descriptive label that is associated with a script. Script names do not need to be unique.public String getName()
A descriptive label that is associated with a script. Script names do not need to be unique.
public UpdateScriptRequest withName(String name)
A descriptive label that is associated with a script. Script names do not need to be unique.
name
- A descriptive label that is associated with a script. Script names do not need to be unique.public void setVersion(String version)
The version that is associated with a build or script. Version strings do not need to be unique.
version
- The version that is associated with a build or script. Version strings do not need to be unique.public String getVersion()
The version that is associated with a build or script. Version strings do not need to be unique.
public UpdateScriptRequest withVersion(String version)
The version that is associated with a build or script. Version strings do not need to be unique.
version
- The version that is associated with a build or script. Version strings do not need to be unique.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 as the script you're updating. 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 as the script you're updating. 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 as the script you're updating. 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 UpdateScriptRequest 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 as the script you're updating. 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 as the script you're updating. 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 UpdateScriptRequest 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 String toString()
toString
in class Object
Object.toString()
public UpdateScriptRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()