@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateFunctionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateFunctionRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ByteBuffer |
getFunctionCode()
The function code.
|
FunctionConfig |
getFunctionConfig()
Configuration information about the function.
|
String |
getIfMatch()
The current version (
ETag value) of the function that you are updating, which you can get using
DescribeFunction . |
String |
getName()
The name of the function that you are updating.
|
int |
hashCode() |
void |
setFunctionCode(ByteBuffer functionCode)
The function code.
|
void |
setFunctionConfig(FunctionConfig functionConfig)
Configuration information about the function.
|
void |
setIfMatch(String ifMatch)
The current version (
ETag value) of the function that you are updating, which you can get using
DescribeFunction . |
void |
setName(String name)
The name of the function that you are updating.
|
String |
toString()
Returns a string representation of this object.
|
UpdateFunctionRequest |
withFunctionCode(ByteBuffer functionCode)
The function code.
|
UpdateFunctionRequest |
withFunctionConfig(FunctionConfig functionConfig)
Configuration information about the function.
|
UpdateFunctionRequest |
withIfMatch(String ifMatch)
The current version (
ETag value) of the function that you are updating, which you can get using
DescribeFunction . |
UpdateFunctionRequest |
withName(String name)
The name of the function that you are updating.
|
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 setName(String name)
The name of the function that you are updating.
name
- The name of the function that you are updating.public String getName()
The name of the function that you are updating.
public UpdateFunctionRequest withName(String name)
The name of the function that you are updating.
name
- The name of the function that you are updating.public void setIfMatch(String ifMatch)
The current version (ETag
value) of the function that you are updating, which you can get using
DescribeFunction
.
ifMatch
- The current version (ETag
value) of the function that you are updating, which you can get
using DescribeFunction
.public String getIfMatch()
The current version (ETag
value) of the function that you are updating, which you can get using
DescribeFunction
.
ETag
value) of the function that you are updating, which you can get
using DescribeFunction
.public UpdateFunctionRequest withIfMatch(String ifMatch)
The current version (ETag
value) of the function that you are updating, which you can get using
DescribeFunction
.
ifMatch
- The current version (ETag
value) of the function that you are updating, which you can get
using DescribeFunction
.public void setFunctionConfig(FunctionConfig functionConfig)
Configuration information about the function.
functionConfig
- Configuration information about the function.public FunctionConfig getFunctionConfig()
Configuration information about the function.
public UpdateFunctionRequest withFunctionConfig(FunctionConfig functionConfig)
Configuration information about the function.
functionConfig
- Configuration information about the function.public void setFunctionCode(ByteBuffer functionCode)
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront 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.
functionCode
- The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.public ByteBuffer getFunctionCode()
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront 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 UpdateFunctionRequest withFunctionCode(ByteBuffer functionCode)
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront 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.
functionCode
- The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.public String toString()
toString
in class Object
Object.toString()
public UpdateFunctionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()