@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LayerVersionContentInput extends Object implements Serializable, Cloneable, StructuredPojo
A ZIP archive that contains the contents of the function layer. You can specify either an Amazon S3 location, or upload a layer archive directly.
Constructor and Description |
---|
LayerVersionContentInput() |
Modifier and Type | Method and Description |
---|---|
LayerVersionContentInput |
clone() |
boolean |
equals(Object obj) |
String |
getS3Bucket()
The Amazon S3 bucket of the layer archive.
|
String |
getS3Key()
The Amazon S3 key of the layer archive.
|
String |
getS3ObjectVersion()
For versioned objects, the version of the layer archive object to use.
|
ByteBuffer |
getZipFile()
The base64-encoded contents of the layer archive.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setS3Bucket(String s3Bucket)
The Amazon S3 bucket of the layer archive.
|
void |
setS3Key(String s3Key)
The Amazon S3 key of the layer archive.
|
void |
setS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the layer archive object to use.
|
void |
setZipFile(ByteBuffer zipFile)
The base64-encoded contents of the layer archive.
|
String |
toString()
Returns a string representation of this object.
|
LayerVersionContentInput |
withS3Bucket(String s3Bucket)
The Amazon S3 bucket of the layer archive.
|
LayerVersionContentInput |
withS3Key(String s3Key)
The Amazon S3 key of the layer archive.
|
LayerVersionContentInput |
withS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the layer archive object to use.
|
LayerVersionContentInput |
withZipFile(ByteBuffer zipFile)
The base64-encoded contents of the layer archive.
|
public void setS3Bucket(String s3Bucket)
The Amazon S3 bucket of the layer archive.
s3Bucket
- The Amazon S3 bucket of the layer archive.public String getS3Bucket()
The Amazon S3 bucket of the layer archive.
public LayerVersionContentInput withS3Bucket(String s3Bucket)
The Amazon S3 bucket of the layer archive.
s3Bucket
- The Amazon S3 bucket of the layer archive.public void setS3Key(String s3Key)
The Amazon S3 key of the layer archive.
s3Key
- The Amazon S3 key of the layer archive.public String getS3Key()
The Amazon S3 key of the layer archive.
public LayerVersionContentInput withS3Key(String s3Key)
The Amazon S3 key of the layer archive.
s3Key
- The Amazon S3 key of the layer archive.public void setS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the layer archive object to use.
s3ObjectVersion
- For versioned objects, the version of the layer archive object to use.public String getS3ObjectVersion()
For versioned objects, the version of the layer archive object to use.
public LayerVersionContentInput withS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the layer archive object to use.
s3ObjectVersion
- For versioned objects, the version of the layer archive object to use.public void setZipFile(ByteBuffer zipFile)
The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.
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 base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.public ByteBuffer getZipFile()
The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.
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 LayerVersionContentInput withZipFile(ByteBuffer zipFile)
The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.
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 base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.public String toString()
toString
in class Object
Object.toString()
public LayerVersionContentInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.