@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PublishVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PublishVersionRequest() |
Modifier and Type | Method and Description |
---|---|
PublishVersionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCodeSha256()
Only publish a version if the hash value matches the value that's specified.
|
String |
getDescription()
A description for the version to override the description in the function configuration.
|
String |
getFunctionName()
The name or ARN of the Lambda function.
|
String |
getRevisionId()
Only update the function if the revision ID matches the ID that's specified.
|
int |
hashCode() |
void |
setCodeSha256(String codeSha256)
Only publish a version if the hash value matches the value that's specified.
|
void |
setDescription(String description)
A description for the version to override the description in the function configuration.
|
void |
setFunctionName(String functionName)
The name or ARN of the Lambda function.
|
void |
setRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
String |
toString()
Returns a string representation of this object.
|
PublishVersionRequest |
withCodeSha256(String codeSha256)
Only publish a version if the hash value matches the value that's specified.
|
PublishVersionRequest |
withDescription(String description)
A description for the version to override the description in the function configuration.
|
PublishVersionRequest |
withFunctionName(String functionName)
The name or ARN of the Lambda function.
|
PublishVersionRequest |
withRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
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 or ARN of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
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 or ARN of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
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 or ARN of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
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 - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
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 PublishVersionRequest withFunctionName(String functionName)
The name or ARN of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
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 or ARN of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
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 setCodeSha256(String codeSha256)
Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.
codeSha256
- Only publish a version if the hash value matches the value that's specified. Use this option to avoid
publishing a version if the function code has changed since you last updated it. You can get the hash for
the version that you uploaded from the output of UpdateFunctionCode.public String getCodeSha256()
Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.
public PublishVersionRequest withCodeSha256(String codeSha256)
Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.
codeSha256
- Only publish a version if the hash value matches the value that's specified. Use this option to avoid
publishing a version if the function code has changed since you last updated it. You can get the hash for
the version that you uploaded from the output of UpdateFunctionCode.public void setDescription(String description)
A description for the version to override the description in the function configuration.
description
- A description for the version to override the description in the function configuration.public String getDescription()
A description for the version to override the description in the function configuration.
public PublishVersionRequest withDescription(String description)
A description for the version to override the description in the function configuration.
description
- A description for the version to override the description in the function configuration.public void setRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
publishing a version if the function configuration has changed since you last updated it.public String getRevisionId()
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.
public PublishVersionRequest withRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
publishing a version if the function configuration has changed since you last updated it.public String toString()
toString
in class Object
Object.toString()
public PublishVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()