@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateEventSourceMappingResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.
Constructor and Description |
---|
UpdateEventSourceMappingResult() |
Modifier and Type | Method and Description |
---|---|
UpdateEventSourceMappingResult |
clone() |
boolean |
equals(Object obj) |
Integer |
getBatchSize()
The maximum number of items to retrieve in a single batch.
|
Boolean |
getBisectBatchOnFunctionError()
(Streams) If the function returns an error, split the batch in two and retry.
|
DestinationConfig |
getDestinationConfig()
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
String |
getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
|
String |
getFunctionArn()
The ARN of the Lambda function.
|
Date |
getLastModified()
The date that the event source mapping was last updated, or its state changed.
|
String |
getLastProcessingResult()
The result of the last AWS Lambda invocation of your Lambda function.
|
Integer |
getMaximumBatchingWindowInSeconds()
(Streams) The maximum amount of time to gather records before invoking the function, in seconds.
|
Integer |
getMaximumRecordAgeInSeconds()
(Streams) Discard records older than the specified age.
|
Integer |
getMaximumRetryAttempts()
(Streams) Discard records after the specified number of retries.
|
Integer |
getParallelizationFactor()
(Streams) The number of batches to process from each shard concurrently.
|
List<String> |
getQueues()
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
List<SourceAccessConfiguration> |
getSourceAccessConfigurations()
(MQ) The Secrets Manager secret that stores your broker credentials.
|
String |
getState()
The state of the event source mapping.
|
String |
getStateTransitionReason()
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
|
List<String> |
getTopics()
(MSK) The name of the Kafka topic to consume.
|
String |
getUUID()
The identifier of the event source mapping.
|
int |
hashCode() |
Boolean |
isBisectBatchOnFunctionError()
(Streams) If the function returns an error, split the batch in two and retry.
|
void |
setBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
|
void |
setBisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry.
|
void |
setDestinationConfig(DestinationConfig destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
void |
setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
void |
setFunctionArn(String functionArn)
The ARN of the Lambda function.
|
void |
setLastModified(Date lastModified)
The date that the event source mapping was last updated, or its state changed.
|
void |
setLastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
|
void |
setMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds.
|
void |
setMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) Discard records older than the specified age.
|
void |
setMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) Discard records after the specified number of retries.
|
void |
setParallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently.
|
void |
setQueues(Collection<String> queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
void |
setSourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials.
|
void |
setState(String state)
The state of the event source mapping.
|
void |
setStateTransitionReason(String stateTransitionReason)
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
|
void |
setTopics(Collection<String> topics)
(MSK) The name of the Kafka topic to consume.
|
void |
setUUID(String uUID)
The identifier of the event source mapping.
|
String |
toString()
Returns a string representation of this object.
|
UpdateEventSourceMappingResult |
withBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
|
UpdateEventSourceMappingResult |
withBisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry.
|
UpdateEventSourceMappingResult |
withDestinationConfig(DestinationConfig destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
UpdateEventSourceMappingResult |
withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
UpdateEventSourceMappingResult |
withFunctionArn(String functionArn)
The ARN of the Lambda function.
|
UpdateEventSourceMappingResult |
withLastModified(Date lastModified)
The date that the event source mapping was last updated, or its state changed.
|
UpdateEventSourceMappingResult |
withLastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
|
UpdateEventSourceMappingResult |
withMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds.
|
UpdateEventSourceMappingResult |
withMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) Discard records older than the specified age.
|
UpdateEventSourceMappingResult |
withMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) Discard records after the specified number of retries.
|
UpdateEventSourceMappingResult |
withParallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently.
|
UpdateEventSourceMappingResult |
withQueues(Collection<String> queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
UpdateEventSourceMappingResult |
withQueues(String... queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
UpdateEventSourceMappingResult |
withSourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials.
|
UpdateEventSourceMappingResult |
withSourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials.
|
UpdateEventSourceMappingResult |
withState(String state)
The state of the event source mapping.
|
UpdateEventSourceMappingResult |
withStateTransitionReason(String stateTransitionReason)
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
|
UpdateEventSourceMappingResult |
withTopics(Collection<String> topics)
(MSK) The name of the Kafka topic to consume.
|
UpdateEventSourceMappingResult |
withTopics(String... topics)
(MSK) The name of the Kafka topic to consume.
|
UpdateEventSourceMappingResult |
withUUID(String uUID)
The identifier of the event source mapping.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setUUID(String uUID)
The identifier of the event source mapping.
uUID
- The identifier of the event source mapping.public String getUUID()
The identifier of the event source mapping.
public UpdateEventSourceMappingResult withUUID(String uUID)
The identifier of the event source mapping.
uUID
- The identifier of the event source mapping.public void setBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
batchSize
- The maximum number of items to retrieve in a single batch.public Integer getBatchSize()
The maximum number of items to retrieve in a single batch.
public UpdateEventSourceMappingResult withBatchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
batchSize
- The maximum number of items to retrieve in a single batch.public void setMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.
maximumBatchingWindowInSeconds
- (Streams) The maximum amount of time to gather records before invoking the function, in seconds. The
default value is zero.public Integer getMaximumBatchingWindowInSeconds()
(Streams) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.
public UpdateEventSourceMappingResult withMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.
maximumBatchingWindowInSeconds
- (Streams) The maximum amount of time to gather records before invoking the function, in seconds. The
default value is zero.public void setParallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently. The default value is 1.
parallelizationFactor
- (Streams) The number of batches to process from each shard concurrently. The default value is 1.public Integer getParallelizationFactor()
(Streams) The number of batches to process from each shard concurrently. The default value is 1.
public UpdateEventSourceMappingResult withParallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently. The default value is 1.
parallelizationFactor
- (Streams) The number of batches to process from each shard concurrently. The default value is 1.public void setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.public String getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
public UpdateEventSourceMappingResult withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.public void setFunctionArn(String functionArn)
The ARN of the Lambda function.
functionArn
- The ARN of the Lambda function.public String getFunctionArn()
The ARN of the Lambda function.
public UpdateEventSourceMappingResult withFunctionArn(String functionArn)
The ARN of the Lambda function.
functionArn
- The ARN of the Lambda function.public void setLastModified(Date lastModified)
The date that the event source mapping was last updated, or its state changed.
lastModified
- The date that the event source mapping was last updated, or its state changed.public Date getLastModified()
The date that the event source mapping was last updated, or its state changed.
public UpdateEventSourceMappingResult withLastModified(Date lastModified)
The date that the event source mapping was last updated, or its state changed.
lastModified
- The date that the event source mapping was last updated, or its state changed.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 UpdateEventSourceMappingResult 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 one of the following: Creating
,
Enabling
, Enabled
, Disabling
, Disabled
, Updating
, or Deleting
.
state
- The state of the event source mapping. It can be one of the following: Creating
,
Enabling
, Enabled
, Disabling
, Disabled
,
Updating
, or Deleting
.public String getState()
The state of the event source mapping. It can be one of the following: Creating
,
Enabling
, Enabled
, Disabling
, Disabled
, Updating
, or Deleting
.
Creating
,
Enabling
, Enabled
, Disabling
, Disabled
,
Updating
, or Deleting
.public UpdateEventSourceMappingResult withState(String state)
The state of the event source mapping. It can be one of the following: Creating
,
Enabling
, Enabled
, Disabling
, Disabled
, Updating
, or Deleting
.
state
- The state of the event source mapping. It can be one of the following: Creating
,
Enabling
, Enabled
, Disabling
, Disabled
,
Updating
, or Deleting
.public void setStateTransitionReason(String stateTransitionReason)
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
stateTransitionReason
- Indicates whether the last change to the event source mapping was made by a user, or by the Lambda
service.public String getStateTransitionReason()
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
public UpdateEventSourceMappingResult withStateTransitionReason(String stateTransitionReason)
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
stateTransitionReason
- Indicates whether the last change to the event source mapping was made by a user, or by the Lambda
service.public void setDestinationConfig(DestinationConfig destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
destinationConfig
- (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.public DestinationConfig getDestinationConfig()
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
public UpdateEventSourceMappingResult withDestinationConfig(DestinationConfig destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
destinationConfig
- (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.public List<String> getTopics()
(MSK) The name of the Kafka topic to consume.
public void setTopics(Collection<String> topics)
(MSK) The name of the Kafka topic to consume.
topics
- (MSK) The name of the Kafka topic to consume.public UpdateEventSourceMappingResult withTopics(String... topics)
(MSK) The name of the Kafka topic to consume.
NOTE: This method appends the values to the existing list (if any). Use
setTopics(java.util.Collection)
or withTopics(java.util.Collection)
if you want to override the
existing values.
topics
- (MSK) The name of the Kafka topic to consume.public UpdateEventSourceMappingResult withTopics(Collection<String> topics)
(MSK) The name of the Kafka topic to consume.
topics
- (MSK) The name of the Kafka topic to consume.public List<String> getQueues()
(MQ) The name of the Amazon MQ broker destination queue to consume.
public void setQueues(Collection<String> queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
queues
- (MQ) The name of the Amazon MQ broker destination queue to consume.public UpdateEventSourceMappingResult withQueues(String... queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
NOTE: This method appends the values to the existing list (if any). Use
setQueues(java.util.Collection)
or withQueues(java.util.Collection)
if you want to override the
existing values.
queues
- (MQ) The name of the Amazon MQ broker destination queue to consume.public UpdateEventSourceMappingResult withQueues(Collection<String> queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
queues
- (MQ) The name of the Amazon MQ broker destination queue to consume.public List<SourceAccessConfiguration> getSourceAccessConfigurations()
(MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following
format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use customer or
service managed keys. When using a customer managed KMS key, the Lambda execution role requires
kms:Decrypt
permissions.
{ "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use
customer or service managed keys. When using a customer managed KMS key, the Lambda execution role
requires kms:Decrypt
permissions.
public void setSourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following
format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use customer or
service managed keys. When using a customer managed KMS key, the Lambda execution role requires
kms:Decrypt
permissions.
sourceAccessConfigurations
- (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the
following format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use
customer or service managed keys. When using a customer managed KMS key, the Lambda execution role
requires kms:Decrypt
permissions.
public UpdateEventSourceMappingResult withSourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following
format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use customer or
service managed keys. When using a customer managed KMS key, the Lambda execution role requires
kms:Decrypt
permissions.
NOTE: This method appends the values to the existing list (if any). Use
setSourceAccessConfigurations(java.util.Collection)
or
withSourceAccessConfigurations(java.util.Collection)
if you want to override the existing values.
sourceAccessConfigurations
- (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the
following format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use
customer or service managed keys. When using a customer managed KMS key, the Lambda execution role
requires kms:Decrypt
permissions.
public UpdateEventSourceMappingResult withSourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following
format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use customer or
service managed keys. When using a customer managed KMS key, the Lambda execution role requires
kms:Decrypt
permissions.
sourceAccessConfigurations
- (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the
following format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use
customer or service managed keys. When using a customer managed KMS key, the Lambda execution role
requires kms:Decrypt
permissions.
public void setMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
maximumRecordAgeInSeconds
- (Streams) Discard records older than the specified age. The default value is infinite (-1). When set to
infinite (-1), failed records are retried until the record expires.public Integer getMaximumRecordAgeInSeconds()
(Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
public UpdateEventSourceMappingResult withMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
maximumRecordAgeInSeconds
- (Streams) Discard records older than the specified age. The default value is infinite (-1). When set to
infinite (-1), failed records are retried until the record expires.public void setBisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry. The default value is false.
bisectBatchOnFunctionError
- (Streams) If the function returns an error, split the batch in two and retry. The default value is false.public Boolean getBisectBatchOnFunctionError()
(Streams) If the function returns an error, split the batch in two and retry. The default value is false.
public UpdateEventSourceMappingResult withBisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry. The default value is false.
bisectBatchOnFunctionError
- (Streams) If the function returns an error, split the batch in two and retry. The default value is false.public Boolean isBisectBatchOnFunctionError()
(Streams) If the function returns an error, split the batch in two and retry. The default value is false.
public void setMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
maximumRetryAttempts
- (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When
set to infinite (-1), failed records are retried until the record expires.public Integer getMaximumRetryAttempts()
(Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
public UpdateEventSourceMappingResult withMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
maximumRetryAttempts
- (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When
set to infinite (-1), failed records are retried until the record expires.public String toString()
toString
in class Object
Object.toString()
public UpdateEventSourceMappingResult clone()
Copyright © 2020. All rights reserved.