public class CreateSecurityProfileRequest extends AmazonWebServiceRequest implements Serializable
Creates a Device Defender security profile.
| Constructor and Description |
|---|
CreateSecurityProfileRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateSecurityProfileRequest |
addalertTargetsEntry(String key,
AlertTarget value)
Specifies the destinations to which alerts are sent.
|
CreateSecurityProfileRequest |
clearalertTargetsEntries()
Removes all the entries added into alertTargets.
|
boolean |
equals(Object obj) |
List<String> |
getAdditionalMetricsToRetain()
A list of metrics whose data is retained (stored).
|
Map<String,AlertTarget> |
getAlertTargets()
Specifies the destinations to which alerts are sent.
|
List<Behavior> |
getBehaviors()
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
String |
getSecurityProfileDescription()
A description of the security profile.
|
String |
getSecurityProfileName()
The name you are giving to the security profile.
|
List<Tag> |
getTags()
Metadata that can be used to manage the security profile.
|
int |
hashCode() |
void |
setAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
A list of metrics whose data is retained (stored).
|
void |
setAlertTargets(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent.
|
void |
setBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
void |
setSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
|
void |
setSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
|
void |
setTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
A list of metrics whose data is retained (stored).
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetain(String... additionalMetricsToRetain)
A list of metrics whose data is retained (stored).
|
CreateSecurityProfileRequest |
withAlertTargets(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent.
|
CreateSecurityProfileRequest |
withBehaviors(Behavior... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
CreateSecurityProfileRequest |
withBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
CreateSecurityProfileRequest |
withSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
|
CreateSecurityProfileRequest |
withSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
|
CreateSecurityProfileRequest |
withTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
|
CreateSecurityProfileRequest |
withTags(Tag... tags)
Metadata that can be used to manage the security profile.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getSecurityProfileName()
The name you are giving to the security profile.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name you are giving to the security profile.
public void setSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
securityProfileName - The name you are giving to the security profile.
public CreateSecurityProfileRequest withSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
securityProfileName - The name you are giving to the security profile.
public String getSecurityProfileDescription()
A description of the security profile.
Constraints:
Length: - 1000
Pattern: [\p{Graph}\x20]*
A description of the security profile.
public void setSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
Constraints:
Length: - 1000
Pattern: [\p{Graph}\x20]*
securityProfileDescription - A description of the security profile.
public CreateSecurityProfileRequest withSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 1000
Pattern: [\p{Graph}\x20]*
securityProfileDescription - A description of the security profile.
public List<Behavior> getBehaviors()
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Specifies the behaviors that, when violated by a device (thing), cause an alert.
public void setBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
behaviors - Specifies the behaviors that, when violated by a device (thing), cause an alert.
public CreateSecurityProfileRequest withBehaviors(Behavior... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Returns a reference to this object so that method calls can be chained together.
behaviors - Specifies the behaviors that, when violated by a device (thing), cause an alert.
public CreateSecurityProfileRequest withBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Returns a reference to this object so that method calls can be chained together.
behaviors - Specifies the behaviors that, when violated by a device (thing), cause an alert.
public Map<String,AlertTarget> getAlertTargets()
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
public void setAlertTargets(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
alertTargets - Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
public CreateSecurityProfileRequest withAlertTargets(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
Returns a reference to this object so that method calls can be chained together.
alertTargets - Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
public CreateSecurityProfileRequest addalertTargetsEntry(String key, AlertTarget value)
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
The method adds a new key-value pair into alertTargets parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into alertTargets.value - The corresponding value of the entry to be added into
alertTargets.public CreateSecurityProfileRequest clearalertTargetsEntries()
Returns a reference to this object so that method calls can be chained together.
public List<String> getAdditionalMetricsToRetain()
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors, but
it is also retained for any metric specified here.
A list of metrics whose data is retained (stored). By default,
data is retained for any metric used in the profile's
behaviors, but it is also retained for any metric
specified here.
public void setAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors, but
it is also retained for any metric specified here.
additionalMetricsToRetain -
A list of metrics whose data is retained (stored). By default,
data is retained for any metric used in the profile's
behaviors, but it is also retained for any metric
specified here.
public CreateSecurityProfileRequest withAdditionalMetricsToRetain(String... additionalMetricsToRetain)
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors, but
it is also retained for any metric specified here.
Returns a reference to this object so that method calls can be chained together.
additionalMetricsToRetain -
A list of metrics whose data is retained (stored). By default,
data is retained for any metric used in the profile's
behaviors, but it is also retained for any metric
specified here.
public CreateSecurityProfileRequest withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors, but
it is also retained for any metric specified here.
Returns a reference to this object so that method calls can be chained together.
additionalMetricsToRetain -
A list of metrics whose data is retained (stored). By default,
data is retained for any metric used in the profile's
behaviors, but it is also retained for any metric
specified here.
public List<Tag> getTags()
Metadata that can be used to manage the security profile.
Metadata that can be used to manage the security profile.
public void setTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
tags - Metadata that can be used to manage the security profile.
public CreateSecurityProfileRequest withTags(Tag... tags)
Metadata that can be used to manage the security profile.
Returns a reference to this object so that method calls can be chained together.
tags - Metadata that can be used to manage the security profile.
public CreateSecurityProfileRequest withTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
Returns a reference to this object so that method calls can be chained together.
tags - Metadata that can be used to manage the security profile.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.