@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FunctionCode extends Object implements Serializable, Cloneable, StructuredPojo
The code for the Lambda function.
Constructor and Description |
---|
FunctionCode() |
Modifier and Type | Method and Description |
---|---|
FunctionCode |
clone() |
boolean |
equals(Object obj) |
String |
getS3Bucket()
Amazon S3 bucket name where the .zip file containing your deployment package is stored.
|
String |
getS3Key()
The Amazon S3 object (the deployment package) key name you want to upload.
|
String |
getS3ObjectVersion()
The Amazon S3 object (the deployment package) version you want to upload.
|
ByteBuffer |
getZipFile()
The contents of your zip file containing your deployment package.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored.
|
void |
setS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
|
void |
setS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
|
void |
setZipFile(ByteBuffer zipFile)
The contents of your zip file containing your deployment package.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
FunctionCode |
withS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored.
|
FunctionCode |
withS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
|
FunctionCode |
withS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
|
FunctionCode |
withZipFile(ByteBuffer zipFile)
The contents of your zip file containing your deployment package.
|
public void setZipFile(ByteBuffer zipFile)
The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.
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
- The contents of your zip file containing your deployment package. If you are using the web API directly,
the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the
SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.public ByteBuffer getZipFile()
The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.
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
.
public FunctionCode withZipFile(ByteBuffer zipFile)
The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.
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
- The contents of your zip file containing your deployment package. If you are using the web API directly,
the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the
SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.public void setS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.
s3Bucket
- Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must
reside in the same AWS region where you are creating the Lambda function.public String getS3Bucket()
Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.
public FunctionCode withS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.
s3Bucket
- Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must
reside in the same AWS region where you are creating the Lambda function.public void setS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
s3Key
- The Amazon S3 object (the deployment package) key name you want to upload.public String getS3Key()
The Amazon S3 object (the deployment package) key name you want to upload.
public FunctionCode withS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
s3Key
- The Amazon S3 object (the deployment package) key name you want to upload.public void setS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to upload.public String getS3ObjectVersion()
The Amazon S3 object (the deployment package) version you want to upload.
public FunctionCode withS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to upload.public String toString()
toString
in class Object
Object.toString()
public FunctionCode clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.