@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateFunctionCodeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateFunctionCodeRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionCodeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
|
String |
getFunctionName()
The name of the Lambda function.
|
Boolean |
getPublish()
Set to true to publish a new version of the function after updating the code.
|
String |
getRevisionId()
Only update the function if the revision ID matches the ID that's specified.
|
String |
getS3Bucket()
An Amazon S3 bucket in the same AWS Region as your function.
|
String |
getS3Key()
The Amazon S3 key of the deployment package.
|
String |
getS3ObjectVersion()
For versioned objects, the version of the deployment package object to use.
|
ByteBuffer |
getZipFile()
The base64-encoded contents of the deployment package.
|
int |
hashCode() |
Boolean |
isDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
|
Boolean |
isPublish()
Set to true to publish a new version of the function after updating the code.
|
void |
setDryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.
|
void |
setFunctionName(String functionName)
The name of the Lambda function.
|
void |
setPublish(Boolean publish)
Set to true to publish a new version of the function after updating the code.
|
void |
setRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
void |
setS3Bucket(String s3Bucket)
An Amazon S3 bucket in the same AWS Region as your function.
|
void |
setS3Key(String s3Key)
The Amazon S3 key of the deployment package.
|
void |
setS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.
|
void |
setZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package.
|
String |
toString()
Returns a string representation of this object.
|
UpdateFunctionCodeRequest |
withDryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.
|
UpdateFunctionCodeRequest |
withFunctionName(String functionName)
The name of the Lambda function.
|
UpdateFunctionCodeRequest |
withPublish(Boolean publish)
Set to true to publish a new version of the function after updating the code.
|
UpdateFunctionCodeRequest |
withRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
UpdateFunctionCodeRequest |
withS3Bucket(String s3Bucket)
An Amazon S3 bucket in the same AWS Region as your function.
|
UpdateFunctionCodeRequest |
withS3Key(String s3Key)
The Amazon S3 key of the deployment package.
|
UpdateFunctionCodeRequest |
withS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.
|
UpdateFunctionCodeRequest |
withZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package.
|
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 setFunctionName(String functionName)
The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public String getFunctionName()
The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public UpdateFunctionCodeRequest withFunctionName(String functionName)
The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public void setZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package. 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 deployment package. AWS SDK and AWS CLI clients handle the encoding for
you.public ByteBuffer getZipFile()
The base64-encoded contents of the deployment package. 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 UpdateFunctionCodeRequest withZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package. 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 deployment package. AWS SDK and AWS CLI clients handle the encoding for
you.public void setS3Bucket(String s3Bucket)
An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
s3Bucket
- An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.public String getS3Bucket()
An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
public UpdateFunctionCodeRequest withS3Bucket(String s3Bucket)
An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
s3Bucket
- An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.public void setS3Key(String s3Key)
The Amazon S3 key of the deployment package.
s3Key
- The Amazon S3 key of the deployment package.public String getS3Key()
The Amazon S3 key of the deployment package.
public UpdateFunctionCodeRequest withS3Key(String s3Key)
The Amazon S3 key of the deployment package.
s3Key
- The Amazon S3 key of the deployment package.public void setS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.
s3ObjectVersion
- For versioned objects, the version of the deployment package object to use.public String getS3ObjectVersion()
For versioned objects, the version of the deployment package object to use.
public UpdateFunctionCodeRequest withS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.
s3ObjectVersion
- For versioned objects, the version of the deployment package object to use.public void setPublish(Boolean publish)
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
publish
- Set to true to publish a new version of the function after updating the code. This has the same effect as
calling PublishVersion separately.public Boolean getPublish()
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
public UpdateFunctionCodeRequest withPublish(Boolean publish)
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
publish
- Set to true to publish a new version of the function after updating the code. This has the same effect as
calling PublishVersion separately.public Boolean isPublish()
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
public void setDryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.
dryRun
- Set to true to validate the request parameters and access permissions without modifying the function code.public Boolean getDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
public UpdateFunctionCodeRequest withDryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.
dryRun
- Set to true to validate the request parameters and access permissions without modifying the function code.public Boolean isDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
public void setRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
modifying a function that has changed since you last read it.public String getRevisionId()
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
public UpdateFunctionCodeRequest withRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
modifying a function that has changed since you last read it.public String toString()
toString
in class Object
Object.toString()
public UpdateFunctionCodeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.