public class Behavior
extends java.lang.Object
implements java.io.Serializable
A Device Defender security profile behavior.
Constructor and Description |
---|
Behavior() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BehaviorCriteria |
getCriteria()
The criteria that determine if a device is behaving normally in regard to
the
metric . |
java.lang.String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension for a metric in your behavior.
|
java.lang.String |
getName()
The name you've given to the behavior.
|
java.lang.Boolean |
getSuppressAlerts()
Suppresses alerts.
|
int |
hashCode() |
java.lang.Boolean |
isSuppressAlerts()
Suppresses alerts.
|
void |
setCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to
the
metric . |
void |
setMetric(java.lang.String metric)
What is measured by the behavior.
|
void |
setMetricDimension(MetricDimension metricDimension)
The dimension for a metric in your behavior.
|
void |
setName(java.lang.String name)
The name you've given to the behavior.
|
void |
setSuppressAlerts(java.lang.Boolean suppressAlerts)
Suppresses alerts.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Behavior |
withCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to
the
metric . |
Behavior |
withMetric(java.lang.String metric)
What is measured by the behavior.
|
Behavior |
withMetricDimension(MetricDimension metricDimension)
The dimension for a metric in your behavior.
|
Behavior |
withName(java.lang.String name)
The name you've given to the behavior.
|
Behavior |
withSuppressAlerts(java.lang.Boolean suppressAlerts)
Suppresses alerts.
|
public java.lang.String getName()
The name you've given to the behavior.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name you've given to the behavior.
public void setName(java.lang.String name)
The name you've given to the behavior.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
name
- The name you've given to the behavior.
public Behavior withName(java.lang.String name)
The name you've given to the behavior.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
name
- The name you've given to the behavior.
public java.lang.String getMetric()
What is measured by the behavior.
What is measured by the behavior.
public void setMetric(java.lang.String metric)
What is measured by the behavior.
metric
- What is measured by the behavior.
public Behavior withMetric(java.lang.String metric)
What is measured by the behavior.
Returns a reference to this object so that method calls can be chained together.
metric
- What is measured by the behavior.
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 BehaviorCriteria getCriteria()
The criteria that determine if a device is behaving normally in regard to
the metric
.
The criteria that determine if a device is behaving normally in
regard to the metric
.
public void setCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to
the metric
.
criteria
-
The criteria that determine if a device is behaving normally
in regard to the metric
.
public Behavior withCriteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to
the metric
.
Returns a reference to this object so that method calls can be chained together.
criteria
-
The criteria that determine if a device is behaving normally
in regard to the metric
.
public java.lang.Boolean isSuppressAlerts()
Suppresses alerts.
Suppresses alerts.
public java.lang.Boolean getSuppressAlerts()
Suppresses alerts.
Suppresses alerts.
public void setSuppressAlerts(java.lang.Boolean suppressAlerts)
Suppresses alerts.
suppressAlerts
- Suppresses alerts.
public Behavior withSuppressAlerts(java.lang.Boolean suppressAlerts)
Suppresses alerts.
Returns a reference to this object so that method calls can be chained together.
suppressAlerts
- Suppresses alerts.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.