@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConnectedHomeSettings extends Object implements Serializable, Cloneable, StructuredPojo
Label detection settings to use on a streaming video. Defining the settings is required in the request parameter for
CreateStreamProcessor. Including this setting in the CreateStreamProcessor
request enables you to
use the stream processor for label detection. You can then select what you want the stream processor to detect, such
as people or pets. When the stream processor has started, one notification is sent for each object class specified.
For example, if packages and pets are selected, one SNS notification is published the first time a package is
detected and one SNS notification is published the first time a pet is detected, as well as an end-of-session
summary.
Constructor and Description |
---|
ConnectedHomeSettings() |
Modifier and Type | Method and Description |
---|---|
ConnectedHomeSettings |
clone() |
boolean |
equals(Object obj) |
List<String> |
getLabels()
Specifies what you want to detect in the video, such as people, packages, or pets.
|
Float |
getMinConfidence()
The minimum confidence required to label an object in the video.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLabels(Collection<String> labels)
Specifies what you want to detect in the video, such as people, packages, or pets.
|
void |
setMinConfidence(Float minConfidence)
The minimum confidence required to label an object in the video.
|
String |
toString()
Returns a string representation of this object.
|
ConnectedHomeSettings |
withLabels(Collection<String> labels)
Specifies what you want to detect in the video, such as people, packages, or pets.
|
ConnectedHomeSettings |
withLabels(String... labels)
Specifies what you want to detect in the video, such as people, packages, or pets.
|
ConnectedHomeSettings |
withMinConfidence(Float minConfidence)
The minimum confidence required to label an object in the video.
|
public List<String> getLabels()
Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".
public void setLabels(Collection<String> labels)
Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".
labels
- Specifies what you want to detect in the video, such as people, packages, or pets. The current valid
labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".public ConnectedHomeSettings withLabels(String... labels)
Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection)
or withLabels(java.util.Collection)
if you want to override the
existing values.
labels
- Specifies what you want to detect in the video, such as people, packages, or pets. The current valid
labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".public ConnectedHomeSettings withLabels(Collection<String> labels)
Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".
labels
- Specifies what you want to detect in the video, such as people, packages, or pets. The current valid
labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".public void setMinConfidence(Float minConfidence)
The minimum confidence required to label an object in the video.
minConfidence
- The minimum confidence required to label an object in the video.public Float getMinConfidence()
The minimum confidence required to label an object in the video.
public ConnectedHomeSettings withMinConfidence(Float minConfidence)
The minimum confidence required to label an object in the video.
minConfidence
- The minimum confidence required to label an object in the video.public String toString()
toString
in class Object
Object.toString()
public ConnectedHomeSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.