@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FunctionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
FunctionConfiguration() |
Modifier and Type | Method and Description |
---|---|
FunctionConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getEncodingType()
The expected encoding type of the input payload for the function.
|
FunctionConfigurationEnvironment |
getEnvironment()
The environment configuration of the function.
|
String |
getExecArgs()
The execution arguments.
|
String |
getExecutable()
The name of the function executable.
|
String |
getFunctionRuntimeOverride()
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda
function.
|
Integer |
getMemorySize()
The memory size, in KB, which the function requires.
|
Boolean |
getPinned()
True if the function is pinned.
|
Integer |
getTimeout()
The allowed function execution time, after which Lambda should terminate the function.
|
int |
hashCode() |
Boolean |
isPinned()
True if the function is pinned.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEncodingType(String encodingType)
The expected encoding type of the input payload for the function.
|
void |
setEnvironment(FunctionConfigurationEnvironment environment)
The environment configuration of the function.
|
void |
setExecArgs(String execArgs)
The execution arguments.
|
void |
setExecutable(String executable)
The name of the function executable.
|
void |
setFunctionRuntimeOverride(String functionRuntimeOverride)
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda
function.
|
void |
setMemorySize(Integer memorySize)
The memory size, in KB, which the function requires.
|
void |
setPinned(Boolean pinned)
True if the function is pinned.
|
void |
setTimeout(Integer timeout)
The allowed function execution time, after which Lambda should terminate the function.
|
String |
toString()
Returns a string representation of this object.
|
FunctionConfiguration |
withEncodingType(EncodingType encodingType)
The expected encoding type of the input payload for the function.
|
FunctionConfiguration |
withEncodingType(String encodingType)
The expected encoding type of the input payload for the function.
|
FunctionConfiguration |
withEnvironment(FunctionConfigurationEnvironment environment)
The environment configuration of the function.
|
FunctionConfiguration |
withExecArgs(String execArgs)
The execution arguments.
|
FunctionConfiguration |
withExecutable(String executable)
The name of the function executable.
|
FunctionConfiguration |
withFunctionRuntimeOverride(String functionRuntimeOverride)
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda
function.
|
FunctionConfiguration |
withMemorySize(Integer memorySize)
The memory size, in KB, which the function requires.
|
FunctionConfiguration |
withPinned(Boolean pinned)
True if the function is pinned.
|
FunctionConfiguration |
withTimeout(Integer timeout)
The allowed function execution time, after which Lambda should terminate the function.
|
public void setEncodingType(String encodingType)
encodingType
- The expected encoding type of the input payload for the function. The default is ''json''.EncodingType
public String getEncodingType()
EncodingType
public FunctionConfiguration withEncodingType(String encodingType)
encodingType
- The expected encoding type of the input payload for the function. The default is ''json''.EncodingType
public FunctionConfiguration withEncodingType(EncodingType encodingType)
encodingType
- The expected encoding type of the input payload for the function. The default is ''json''.EncodingType
public void setEnvironment(FunctionConfigurationEnvironment environment)
environment
- The environment configuration of the function.public FunctionConfigurationEnvironment getEnvironment()
public FunctionConfiguration withEnvironment(FunctionConfigurationEnvironment environment)
environment
- The environment configuration of the function.public void setExecArgs(String execArgs)
execArgs
- The execution arguments.public String getExecArgs()
public FunctionConfiguration withExecArgs(String execArgs)
execArgs
- The execution arguments.public void setExecutable(String executable)
executable
- The name of the function executable.public String getExecutable()
public FunctionConfiguration withExecutable(String executable)
executable
- The name of the function executable.public void setMemorySize(Integer memorySize)
memorySize
- The memory size, in KB, which the function requires. This setting is not applicable and should be cleared
when you run the Lambda function without containerization.public Integer getMemorySize()
public FunctionConfiguration withMemorySize(Integer memorySize)
memorySize
- The memory size, in KB, which the function requires. This setting is not applicable and should be cleared
when you run the Lambda function without containerization.public void setPinned(Boolean pinned)
pinned
- True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.public Boolean getPinned()
public FunctionConfiguration withPinned(Boolean pinned)
pinned
- True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.public Boolean isPinned()
public void setTimeout(Integer timeout)
timeout
- The allowed function execution time, after which Lambda should terminate the function. This timeout still
applies to pinned Lambda functions for each request.public Integer getTimeout()
public FunctionConfiguration withTimeout(Integer timeout)
timeout
- The allowed function execution time, after which Lambda should terminate the function. This timeout still
applies to pinned Lambda functions for each request.public void setFunctionRuntimeOverride(String functionRuntimeOverride)
functionRuntimeOverride
- The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda
function.public String getFunctionRuntimeOverride()
public FunctionConfiguration withFunctionRuntimeOverride(String functionRuntimeOverride)
functionRuntimeOverride
- The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda
function.public String toString()
toString
in class Object
Object.toString()
public FunctionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.