@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventSourceMappingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes mapping between an Amazon Kinesis stream and a Lambda function.
Constructor and Description |
---|
EventSourceMappingConfiguration() |
Modifier and Type | Method and Description |
---|---|
EventSourceMappingConfiguration |
clone() |
boolean |
equals(Object obj) |
Integer |
getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your
function.
|
String |
getEventSourceArn()
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
|
String |
getFunctionArn()
The Lambda function to invoke when AWS Lambda detects an event on the stream.
|
Date |
getLastModified()
The UTC time string indicating the last time the event mapping was updated.
|
String |
getLastProcessingResult()
The result of the last AWS Lambda invocation of your Lambda function.
|
String |
getState()
The state of the event source mapping.
|
String |
getStateTransitionReason()
The reason the event source mapping is in its current state.
|
String |
getUUID()
The AWS Lambda assigned opaque identifier for the mapping.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your
function.
|
void |
setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
|
void |
setFunctionArn(String functionArn)
The Lambda function to invoke when AWS Lambda detects an event on the stream.
|
void |
setLastModified(Date lastModified)
The UTC time string indicating the last time the event mapping was updated.
|
void |
setLastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
|
void |
setState(String state)
The state of the event source mapping.
|
void |
setStateTransitionReason(String stateTransitionReason)
The reason the event source mapping is in its current state.
|
void |
setUUID(String uUID)
The AWS Lambda assigned opaque identifier for the mapping.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EventSourceMappingConfiguration |
withBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your
function.
|
EventSourceMappingConfiguration |
withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
|
EventSourceMappingConfiguration |
withFunctionArn(String functionArn)
The Lambda function to invoke when AWS Lambda detects an event on the stream.
|
EventSourceMappingConfiguration |
withLastModified(Date lastModified)
The UTC time string indicating the last time the event mapping was updated.
|
EventSourceMappingConfiguration |
withLastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
|
EventSourceMappingConfiguration |
withState(String state)
The state of the event source mapping.
|
EventSourceMappingConfiguration |
withStateTransitionReason(String stateTransitionReason)
The reason the event source mapping is in its current state.
|
EventSourceMappingConfiguration |
withUUID(String uUID)
The AWS Lambda assigned opaque identifier for the mapping.
|
public void setUUID(String uUID)
The AWS Lambda assigned opaque identifier for the mapping.
uUID
- The AWS Lambda assigned opaque identifier for the mapping.public String getUUID()
The AWS Lambda assigned opaque identifier for the mapping.
public EventSourceMappingConfiguration withUUID(String uUID)
The AWS Lambda assigned opaque identifier for the mapping.
uUID
- The AWS Lambda assigned opaque identifier for the mapping.public void setBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.
batchSize
- The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking
your function. Your function receives an event with all the retrieved records.public Integer getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.
public EventSourceMappingConfiguration withBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.
batchSize
- The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking
your function. Your function receives an event with all the retrieved records.public void setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
eventSourceArn
- The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.public String getEventSourceArn()
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
public EventSourceMappingConfiguration withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
eventSourceArn
- The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.public void setFunctionArn(String functionArn)
The Lambda function to invoke when AWS Lambda detects an event on the stream.
functionArn
- The Lambda function to invoke when AWS Lambda detects an event on the stream.public String getFunctionArn()
The Lambda function to invoke when AWS Lambda detects an event on the stream.
public EventSourceMappingConfiguration withFunctionArn(String functionArn)
The Lambda function to invoke when AWS Lambda detects an event on the stream.
functionArn
- The Lambda function to invoke when AWS Lambda detects an event on the stream.public void setLastModified(Date lastModified)
The UTC time string indicating the last time the event mapping was updated.
lastModified
- The UTC time string indicating the last time the event mapping was updated.public Date getLastModified()
The UTC time string indicating the last time the event mapping was updated.
public EventSourceMappingConfiguration withLastModified(Date lastModified)
The UTC time string indicating the last time the event mapping was updated.
lastModified
- The UTC time string indicating the last time the event mapping was updated.public void setLastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
lastProcessingResult
- The result of the last AWS Lambda invocation of your Lambda function.public String getLastProcessingResult()
The result of the last AWS Lambda invocation of your Lambda function.
public EventSourceMappingConfiguration withLastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
lastProcessingResult
- The result of the last AWS Lambda invocation of your Lambda function.public void setState(String state)
The state of the event source mapping. It can be Creating
, Enabled
,
Disabled
, Enabling
, Disabling
, Updating
, or
Deleting
.
state
- The state of the event source mapping. It can be Creating
, Enabled
,
Disabled
, Enabling
, Disabling
, Updating
, or
Deleting
.public String getState()
The state of the event source mapping. It can be Creating
, Enabled
,
Disabled
, Enabling
, Disabling
, Updating
, or
Deleting
.
Creating
, Enabled
,
Disabled
, Enabling
, Disabling
, Updating
, or
Deleting
.public EventSourceMappingConfiguration withState(String state)
The state of the event source mapping. It can be Creating
, Enabled
,
Disabled
, Enabling
, Disabling
, Updating
, or
Deleting
.
state
- The state of the event source mapping. It can be Creating
, Enabled
,
Disabled
, Enabling
, Disabling
, Updating
, or
Deleting
.public void setStateTransitionReason(String stateTransitionReason)
The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.
stateTransitionReason
- The reason the event source mapping is in its current state. It is either user-requested or an AWS
Lambda-initiated state transition.public String getStateTransitionReason()
The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.
public EventSourceMappingConfiguration withStateTransitionReason(String stateTransitionReason)
The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.
stateTransitionReason
- The reason the event source mapping is in its current state. It is either user-requested or an AWS
Lambda-initiated state transition.public String toString()
toString
in class Object
Object.toString()
public EventSourceMappingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.