Interface CreateStreamProcessorRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateStreamProcessorRequest.Builder,
,CreateStreamProcessorRequest> RekognitionRequest.Builder
,SdkBuilder<CreateStreamProcessorRequest.Builder,
,CreateStreamProcessorRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateStreamProcessorRequest
-
Method Summary
Modifier and TypeMethodDescriptiondataSharingPreference
(Consumer<StreamProcessorDataSharingPreference.Builder> dataSharingPreference) Shows whether you are sharing data with Rekognition to improve model performance.dataSharingPreference
(StreamProcessorDataSharingPreference dataSharingPreference) Shows whether you are sharing data with Rekognition to improve model performance.Kinesis video stream stream that provides the source streaming video.input
(StreamProcessorInput input) Kinesis video stream stream that provides the source streaming video.The identifier for your AWS Key Management Service key (AWS KMS key).An identifier you assign to the stream processor.notificationChannel
(Consumer<StreamProcessorNotificationChannel.Builder> notificationChannel) Sets the value of the NotificationChannel property for this object.notificationChannel
(StreamProcessorNotificationChannel notificationChannel) Sets the value of the NotificationChannel property for this object.output
(Consumer<StreamProcessorOutput.Builder> output) Kinesis data stream stream or Amazon S3 bucket location to which Amazon Rekognition Video puts the analysis results.output
(StreamProcessorOutput output) Kinesis data stream stream or Amazon S3 bucket location to which Amazon Rekognition Video puts the analysis results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.regionsOfInterest
(Collection<RegionOfInterest> regionsOfInterest) Specifies locations in the frames where Amazon Rekognition checks for objects or people.regionsOfInterest
(Consumer<RegionOfInterest.Builder>... regionsOfInterest) Specifies locations in the frames where Amazon Rekognition checks for objects or people.regionsOfInterest
(RegionOfInterest... regionsOfInterest) Specifies locations in the frames where Amazon Rekognition checks for objects or people.The Amazon Resource Number (ARN) of the IAM role that allows access to the stream processor.settings
(Consumer<StreamProcessorSettings.Builder> settings) Input parameters used in a streaming video analyzed by a stream processor.settings
(StreamProcessorSettings settings) Input parameters used in a streaming video analyzed by a stream processor.A set of tags (key-value pairs) that you want to attach to the stream processor.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
input
Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name is
StreamProcessorInput
. This is required for both face search and label detection stream processors.- Parameters:
input
- Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name isStreamProcessorInput
. This is required for both face search and label detection stream processors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
input
Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name is
This is a convenience method that creates an instance of theStreamProcessorInput
. This is required for both face search and label detection stream processors.StreamProcessorInput.Builder
avoiding the need to create one manually viaStreamProcessorInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinput(StreamProcessorInput)
.- Parameters:
input
- a consumer that will call methods onStreamProcessorInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
output
Kinesis data stream stream or Amazon S3 bucket location to which Amazon Rekognition Video puts the analysis results. If you are using the AWS CLI, the parameter name is
StreamProcessorOutput
. This must be a S3Destination of an Amazon S3 bucket that you own for a label detection stream processor or a Kinesis data stream ARN for a face search stream processor.- Parameters:
output
- Kinesis data stream stream or Amazon S3 bucket location to which Amazon Rekognition Video puts the analysis results. If you are using the AWS CLI, the parameter name isStreamProcessorOutput
. This must be a S3Destination of an Amazon S3 bucket that you own for a label detection stream processor or a Kinesis data stream ARN for a face search stream processor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
output
Kinesis data stream stream or Amazon S3 bucket location to which Amazon Rekognition Video puts the analysis results. If you are using the AWS CLI, the parameter name is
This is a convenience method that creates an instance of theStreamProcessorOutput
. This must be a S3Destination of an Amazon S3 bucket that you own for a label detection stream processor or a Kinesis data stream ARN for a face search stream processor.StreamProcessorOutput.Builder
avoiding the need to create one manually viaStreamProcessorOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutput(StreamProcessorOutput)
.- Parameters:
output
- a consumer that will call methods onStreamProcessorOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
An identifier you assign to the stream processor. You can use
Name
to manage the stream processor. For example, you can get the current status of the stream processor by calling DescribeStreamProcessor.Name
is idempotent. This is required for both face search and label detection stream processors.- Parameters:
name
- An identifier you assign to the stream processor. You can useName
to manage the stream processor. For example, you can get the current status of the stream processor by calling DescribeStreamProcessor.Name
is idempotent. This is required for both face search and label detection stream processors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
settings
Input parameters used in a streaming video analyzed by a stream processor. You can use
FaceSearch
to recognize faces in a streaming video, or you can useConnectedHome
to detect labels.- Parameters:
settings
- Input parameters used in a streaming video analyzed by a stream processor. You can useFaceSearch
to recognize faces in a streaming video, or you can useConnectedHome
to detect labels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
settings
default CreateStreamProcessorRequest.Builder settings(Consumer<StreamProcessorSettings.Builder> settings) Input parameters used in a streaming video analyzed by a stream processor. You can use
This is a convenience method that creates an instance of theFaceSearch
to recognize faces in a streaming video, or you can useConnectedHome
to detect labels.StreamProcessorSettings.Builder
avoiding the need to create one manually viaStreamProcessorSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosettings(StreamProcessorSettings)
.- Parameters:
settings
- a consumer that will call methods onStreamProcessorSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleArn
The Amazon Resource Number (ARN) of the IAM role that allows access to the stream processor. The IAM role provides Rekognition read permissions for a Kinesis stream. It also provides write permissions to an Amazon S3 bucket and Amazon Simple Notification Service topic for a label detection stream processor. This is required for both face search and label detection stream processors.
- Parameters:
roleArn
- The Amazon Resource Number (ARN) of the IAM role that allows access to the stream processor. The IAM role provides Rekognition read permissions for a Kinesis stream. It also provides write permissions to an Amazon S3 bucket and Amazon Simple Notification Service topic for a label detection stream processor. This is required for both face search and label detection stream processors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A set of tags (key-value pairs) that you want to attach to the stream processor.
- Parameters:
tags
- A set of tags (key-value pairs) that you want to attach to the stream processor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationChannel
CreateStreamProcessorRequest.Builder notificationChannel(StreamProcessorNotificationChannel notificationChannel) Sets the value of the NotificationChannel property for this object.- Parameters:
notificationChannel
- The new value for the NotificationChannel property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationChannel
default CreateStreamProcessorRequest.Builder notificationChannel(Consumer<StreamProcessorNotificationChannel.Builder> notificationChannel) Sets the value of the NotificationChannel property for this object. This is a convenience method that creates an instance of theStreamProcessorNotificationChannel.Builder
avoiding the need to create one manually viaStreamProcessorNotificationChannel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonotificationChannel(StreamProcessorNotificationChannel)
.- Parameters:
notificationChannel
- a consumer that will call methods onStreamProcessorNotificationChannel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kmsKeyId
The identifier for your AWS Key Management Service key (AWS KMS key). This is an optional parameter for label detection stream processors and should not be used to create a face search stream processor. You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt results and data published to your Amazon S3 bucket, which includes image frames and hero images. Your source images are unaffected.
- Parameters:
kmsKeyId
- The identifier for your AWS Key Management Service key (AWS KMS key). This is an optional parameter for label detection stream processors and should not be used to create a face search stream processor. You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt results and data published to your Amazon S3 bucket, which includes image frames and hero images. Your source images are unaffected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regionsOfInterest
CreateStreamProcessorRequest.Builder regionsOfInterest(Collection<RegionOfInterest> regionsOfInterest) Specifies locations in the frames where Amazon Rekognition checks for objects or people. You can specify up to 10 regions of interest, and each region has either a polygon or a bounding box. This is an optional parameter for label detection stream processors and should not be used to create a face search stream processor.
- Parameters:
regionsOfInterest
- Specifies locations in the frames where Amazon Rekognition checks for objects or people. You can specify up to 10 regions of interest, and each region has either a polygon or a bounding box. This is an optional parameter for label detection stream processors and should not be used to create a face search stream processor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regionsOfInterest
Specifies locations in the frames where Amazon Rekognition checks for objects or people. You can specify up to 10 regions of interest, and each region has either a polygon or a bounding box. This is an optional parameter for label detection stream processors and should not be used to create a face search stream processor.
- Parameters:
regionsOfInterest
- Specifies locations in the frames where Amazon Rekognition checks for objects or people. You can specify up to 10 regions of interest, and each region has either a polygon or a bounding box. This is an optional parameter for label detection stream processors and should not be used to create a face search stream processor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regionsOfInterest
CreateStreamProcessorRequest.Builder regionsOfInterest(Consumer<RegionOfInterest.Builder>... regionsOfInterest) Specifies locations in the frames where Amazon Rekognition checks for objects or people. You can specify up to 10 regions of interest, and each region has either a polygon or a bounding box. This is an optional parameter for label detection stream processors and should not be used to create a face search stream processor.
This is a convenience method that creates an instance of theRegionOfInterest.Builder
avoiding the need to create one manually viaRegionOfInterest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toregionsOfInterest(List<RegionOfInterest>)
.- Parameters:
regionsOfInterest
- a consumer that will call methods onRegionOfInterest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSharingPreference
CreateStreamProcessorRequest.Builder dataSharingPreference(StreamProcessorDataSharingPreference dataSharingPreference) Shows whether you are sharing data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams.
- Parameters:
dataSharingPreference
- Shows whether you are sharing data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSharingPreference
default CreateStreamProcessorRequest.Builder dataSharingPreference(Consumer<StreamProcessorDataSharingPreference.Builder> dataSharingPreference) Shows whether you are sharing data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams.
This is a convenience method that creates an instance of theStreamProcessorDataSharingPreference.Builder
avoiding the need to create one manually viaStreamProcessorDataSharingPreference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataSharingPreference(StreamProcessorDataSharingPreference)
.- Parameters:
dataSharingPreference
- a consumer that will call methods onStreamProcessorDataSharingPreference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateStreamProcessorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateStreamProcessorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-