@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateEventSourceMappingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateEventSourceMappingRequest() |
Modifier and Type | Method and Description |
---|---|
CreateEventSourceMappingRequest |
clone() |
boolean |
equals(Object obj) |
Integer |
getBatchSize()
The maximum number of items to retrieve in a single batch.
|
Boolean |
getEnabled()
Disables the event source mapping to pause polling and invocation.
|
String |
getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
|
String |
getFunctionName()
The name of the Lambda function.
|
String |
getStartingPosition()
The position in a stream from which to start reading.
|
Date |
getStartingPositionTimestamp()
With
StartingPosition set to AT_TIMESTAMP , the time from which to start reading. |
int |
hashCode() |
Boolean |
isEnabled()
Disables the event source mapping to pause polling and invocation.
|
void |
setBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
|
void |
setEnabled(Boolean enabled)
Disables the event source mapping to pause polling and invocation.
|
void |
setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
void |
setFunctionName(String functionName)
The name of the Lambda function.
|
void |
setStartingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading.
|
void |
setStartingPosition(String startingPosition)
The position in a stream from which to start reading.
|
void |
setStartingPositionTimestamp(Date startingPositionTimestamp)
With
StartingPosition set to AT_TIMESTAMP , the time from which to start reading. |
String |
toString()
Returns a string representation of this object.
|
CreateEventSourceMappingRequest |
withBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
|
CreateEventSourceMappingRequest |
withEnabled(Boolean enabled)
Disables the event source mapping to pause polling and invocation.
|
CreateEventSourceMappingRequest |
withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
CreateEventSourceMappingRequest |
withFunctionName(String functionName)
The name of the Lambda function.
|
CreateEventSourceMappingRequest |
withStartingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading.
|
CreateEventSourceMappingRequest |
withStartingPosition(String startingPosition)
The position in a stream from which to start reading.
|
CreateEventSourceMappingRequest |
withStartingPositionTimestamp(Date startingPositionTimestamp)
With
StartingPosition set to AT_TIMESTAMP , the time from which to start reading. |
addHandlerContext, copyBaseTo, 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 setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
Amazon Kinesis - The ARN of the data stream or a stream consumer.
Amazon DynamoDB Streams - The ARN of the stream.
Amazon Simple Queue Service - The ARN of the queue.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.
Amazon Kinesis - The ARN of the data stream or a stream consumer.
Amazon DynamoDB Streams - The ARN of the stream.
Amazon Simple Queue Service - The ARN of the queue.
public String getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
Amazon Kinesis - The ARN of the data stream or a stream consumer.
Amazon DynamoDB Streams - The ARN of the stream.
Amazon Simple Queue Service - The ARN of the queue.
Amazon Kinesis - The ARN of the data stream or a stream consumer.
Amazon DynamoDB Streams - The ARN of the stream.
Amazon Simple Queue Service - The ARN of the queue.
public CreateEventSourceMappingRequest withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
Amazon Kinesis - The ARN of the data stream or a stream consumer.
Amazon DynamoDB Streams - The ARN of the stream.
Amazon Simple Queue Service - The ARN of the queue.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.
Amazon Kinesis - The ARN of the data stream or a stream consumer.
Amazon DynamoDB Streams - The ARN of the stream.
Amazon Simple Queue Service - The ARN of the queue.
public void setFunctionName(String functionName)
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
public String getFunctionName()
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
public CreateEventSourceMappingRequest withFunctionName(String functionName)
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
public void setEnabled(Boolean enabled)
Disables the event source mapping to pause polling and invocation.
enabled
- Disables the event source mapping to pause polling and invocation.public Boolean getEnabled()
Disables the event source mapping to pause polling and invocation.
public CreateEventSourceMappingRequest withEnabled(Boolean enabled)
Disables the event source mapping to pause polling and invocation.
enabled
- Disables the event source mapping to pause polling and invocation.public Boolean isEnabled()
Disables the event source mapping to pause polling and invocation.
public void setBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
Amazon Kinesis - Default 100. Max 10,000.
Amazon DynamoDB Streams - Default 100. Max 1,000.
Amazon Simple Queue Service - Default 10. Max 10.
batchSize
- The maximum number of items to retrieve in a single batch.
Amazon Kinesis - Default 100. Max 10,000.
Amazon DynamoDB Streams - Default 100. Max 1,000.
Amazon Simple Queue Service - Default 10. Max 10.
public Integer getBatchSize()
The maximum number of items to retrieve in a single batch.
Amazon Kinesis - Default 100. Max 10,000.
Amazon DynamoDB Streams - Default 100. Max 1,000.
Amazon Simple Queue Service - Default 10. Max 10.
Amazon Kinesis - Default 100. Max 10,000.
Amazon DynamoDB Streams - Default 100. Max 1,000.
Amazon Simple Queue Service - Default 10. Max 10.
public CreateEventSourceMappingRequest withBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
Amazon Kinesis - Default 100. Max 10,000.
Amazon DynamoDB Streams - Default 100. Max 1,000.
Amazon Simple Queue Service - Default 10. Max 10.
batchSize
- The maximum number of items to retrieve in a single batch.
Amazon Kinesis - Default 100. Max 10,000.
Amazon DynamoDB Streams - Default 100. Max 1,000.
Amazon Simple Queue Service - Default 10. Max 10.
public void setStartingPosition(String startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams
sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB
Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.EventSourcePosition
public String getStartingPosition()
The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams
sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
AT_TIMESTAMP
is only supported for Amazon Kinesis streams.EventSourcePosition
public CreateEventSourceMappingRequest withStartingPosition(String startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams
sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB
Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.EventSourcePosition
public void setStartingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams
sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB
Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.EventSourcePosition
public CreateEventSourceMappingRequest withStartingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams
sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB
Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.EventSourcePosition
public void setStartingPositionTimestamp(Date startingPositionTimestamp)
With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading.
startingPositionTimestamp
- With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading.public Date getStartingPositionTimestamp()
With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading.
StartingPosition
set to AT_TIMESTAMP
, the time from which to start
reading.public CreateEventSourceMappingRequest withStartingPositionTimestamp(Date startingPositionTimestamp)
With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading.
startingPositionTimestamp
- With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading.public String toString()
toString
in class Object
Object.toString()
public CreateEventSourceMappingRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2019. All rights reserved.