Class CreateStreamProcessorRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.rekognition.model.RekognitionRequest
-
- software.amazon.awssdk.services.rekognition.model.CreateStreamProcessorRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateStreamProcessorRequest.Builder,CreateStreamProcessorRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateStreamProcessorRequest extends RekognitionRequest implements ToCopyableBuilder<CreateStreamProcessorRequest.Builder,CreateStreamProcessorRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateStreamProcessorRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateStreamProcessorRequest.Builderbuilder()StreamProcessorDataSharingPreferencedataSharingPreference()Shows whether you are sharing data with Rekognition to improve model performance.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasRegionsOfInterest()For responses, this returns true if the service returned a value for the RegionsOfInterest property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StreamProcessorInputinput()Kinesis video stream stream that provides the source streaming video.StringkmsKeyId()The identifier for your AWS Key Management Service key (AWS KMS key).Stringname()An identifier you assign to the stream processor.StreamProcessorNotificationChannelnotificationChannel()Returns the value of the NotificationChannel property for this object.StreamProcessorOutputoutput()Kinesis data stream stream or Amazon S3 bucket location to which Amazon Rekognition Video puts the analysis results.List<RegionOfInterest>regionsOfInterest()Specifies locations in the frames where Amazon Rekognition checks for objects or people.StringroleArn()The Amazon Resource Number (ARN) of the IAM role that allows access to the stream processor.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateStreamProcessorRequest.Builder>serializableBuilderClass()StreamProcessorSettingssettings()Input parameters used in a streaming video analyzed by a stream processor.Map<String,String>tags()A set of tags (key-value pairs) that you want to attach to the stream processor.CreateStreamProcessorRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
input
public final StreamProcessorInput 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.- Returns:
- 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.
-
output
public final StreamProcessorOutput 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.- Returns:
- 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.
-
name
public final String name()
An identifier you assign to the stream processor. You can use
Nameto manage the stream processor. For example, you can get the current status of the stream processor by calling DescribeStreamProcessor.Nameis idempotent. This is required for both face search and label detection stream processors.- Returns:
- An identifier you assign to the stream processor. You can use
Nameto manage the stream processor. For example, you can get the current status of the stream processor by calling DescribeStreamProcessor.Nameis idempotent. This is required for both face search and label detection stream processors.
-
settings
public final StreamProcessorSettings settings()
Input parameters used in a streaming video analyzed by a stream processor. You can use
FaceSearchto recognize faces in a streaming video, or you can useConnectedHometo detect labels.- Returns:
- Input parameters used in a streaming video analyzed by a stream processor. You can use
FaceSearchto recognize faces in a streaming video, or you can useConnectedHometo detect labels.
-
roleArn
public final String 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:
- 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.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final Map<String,String> tags()
A set of tags (key-value pairs) that you want to attach to the stream processor.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- A set of tags (key-value pairs) that you want to attach to the stream processor.
-
notificationChannel
public final StreamProcessorNotificationChannel notificationChannel()
Returns the value of the NotificationChannel property for this object.- Returns:
- The value of the NotificationChannel property for this object.
-
kmsKeyId
public final String 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:
- 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.
-
hasRegionsOfInterest
public final boolean hasRegionsOfInterest()
For responses, this returns true if the service returned a value for the RegionsOfInterest property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
regionsOfInterest
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRegionsOfInterest()method.- Returns:
- 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.
-
dataSharingPreference
public final 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.
- Returns:
- 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.
-
toBuilder
public CreateStreamProcessorRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateStreamProcessorRequest.Builder,CreateStreamProcessorRequest>- Specified by:
toBuilderin classRekognitionRequest
-
builder
public static CreateStreamProcessorRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateStreamProcessorRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-