@Generated(value="software.amazon.awssdk:codegen") public class PublishVersionRequest extends LambdaRequest implements ToCopyableBuilder<PublishVersionRequest.Builder,PublishVersionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
PublishVersionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static PublishVersionRequest.Builder |
builder() |
String |
codeSha256()
The SHA256 hash of the deployment package you want to publish.
|
String |
description()
The description for the version you are publishing.
|
boolean |
equals(Object obj) |
String |
functionName()
The Lambda function name.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
revisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
static Class<? extends PublishVersionRequest.Builder> |
serializableBuilderClass() |
PublishVersionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String functionName()
The Lambda function name. You can specify a function name (for example, Thumbnail
) or you can
specify Amazon Resource Name (ARN) of the function (for example,
arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to specify a
partial ARN (for example, account-id:Thumbnail
). Note that the length constraint applies only to the
ARN. If you specify only the function name, it is limited to 64 characters in length.
Thumbnail
) or you
can specify Amazon Resource Name (ARN) of the function (for example,
arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to
specify a partial ARN (for example, account-id:Thumbnail
). Note that the length constraint
applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.public String codeSha256()
The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter, the value must match the SHA256 of the $LATEST version for the publication to succeed. You can use the DryRun parameter of UpdateFunctionCode to verify the hash value that will be returned before publishing your new version.
public String description()
The description for the version you are publishing. If not provided, AWS Lambda copies the description from the $LATEST version.
public String revisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either or .
RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either or .public PublishVersionRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PublishVersionRequest.Builder,PublishVersionRequest>
toBuilder
in class LambdaRequest
public static PublishVersionRequest.Builder builder()
public static Class<? extends PublishVersionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.