@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Behavior extends Object implements Serializable, Cloneable, StructuredPojo
A Device Defender security profile behavior.
Constructor and Description |
---|
Behavior() |
Modifier and Type | Method and Description |
---|---|
Behavior |
clone() |
boolean |
equals(Object obj) |
BehaviorCriteria |
getCriteria()
The criteria that determine if a device is behaving normally in regard to the
metric . |
Boolean |
getExportMetric()
Value indicates exporting metrics related to the behavior when it is true.
|
String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension for a metric in your behavior.
|
String |
getName()
The name you've given to the behavior.
|
Boolean |
getSuppressAlerts()
Suppresses alerts.
|
int |
hashCode() |
Boolean |
isExportMetric()
Value indicates exporting metrics related to the behavior when it is true.
|
Boolean |
isSuppressAlerts()
Suppresses alerts.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to the
metric . |
void |
setExportMetric(Boolean exportMetric)
Value indicates exporting metrics related to the behavior when it is true.
|
void |
setMetric(String metric)
What is measured by the behavior.
|
void |
setMetricDimension(MetricDimension metricDimension)
The dimension for a metric in your behavior.
|
void |
setName(String name)
The name you've given to the behavior.
|
void |
setSuppressAlerts(Boolean suppressAlerts)
Suppresses alerts.
|
String |
toString()
Returns a string representation of this object.
|
Behavior |
withCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to the
metric . |
Behavior |
withExportMetric(Boolean exportMetric)
Value indicates exporting metrics related to the behavior when it is true.
|
Behavior |
withMetric(String metric)
What is measured by the behavior.
|
Behavior |
withMetricDimension(MetricDimension metricDimension)
The dimension for a metric in your behavior.
|
Behavior |
withName(String name)
The name you've given to the behavior.
|
Behavior |
withSuppressAlerts(Boolean suppressAlerts)
Suppresses alerts.
|
public void setName(String name)
The name you've given to the behavior.
name
- The name you've given to the behavior.public String getName()
The name you've given to the behavior.
public Behavior withName(String name)
The name you've given to the behavior.
name
- The name you've given to the behavior.public void setMetric(String metric)
What is measured by the behavior.
metric
- What is measured by the behavior.public String getMetric()
What is measured by the behavior.
public Behavior withMetric(String metric)
What is measured by the behavior.
metric
- What is measured by the behavior.public void setMetricDimension(MetricDimension metricDimension)
The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
dimension, you can
narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the
dimension. This can't be used with custom metrics.
metricDimension
- The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
dimension, you
can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified
in the dimension. This can't be used with custom metrics.public MetricDimension getMetricDimension()
The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
dimension, you can
narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the
dimension. This can't be used with custom metrics.
TOPIC_FILTER
dimension,
you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern
specified in the dimension. This can't be used with custom metrics.public Behavior withMetricDimension(MetricDimension metricDimension)
The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
dimension, you can
narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the
dimension. This can't be used with custom metrics.
metricDimension
- The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
dimension, you
can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified
in the dimension. This can't be used with custom metrics.public void setCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to the metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
criteria
- The criteria that determine if a device is behaving normally in regard to the metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
public BehaviorCriteria getCriteria()
The criteria that determine if a device is behaving normally in regard to the metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
public Behavior withCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to the metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
criteria
- The criteria that determine if a device is behaving normally in regard to the metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
public void setSuppressAlerts(Boolean suppressAlerts)
Suppresses alerts.
suppressAlerts
- Suppresses alerts.public Boolean getSuppressAlerts()
Suppresses alerts.
public Behavior withSuppressAlerts(Boolean suppressAlerts)
Suppresses alerts.
suppressAlerts
- Suppresses alerts.public Boolean isSuppressAlerts()
Suppresses alerts.
public void setExportMetric(Boolean exportMetric)
Value indicates exporting metrics related to the behavior when it is true.
exportMetric
- Value indicates exporting metrics related to the behavior when it is true.public Boolean getExportMetric()
Value indicates exporting metrics related to the behavior when it is true.
public Behavior withExportMetric(Boolean exportMetric)
Value indicates exporting metrics related to the behavior when it is true.
exportMetric
- Value indicates exporting metrics related to the behavior when it is true.public Boolean isExportMetric()
Value indicates exporting metrics related to the behavior when it is true.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.