public class CreateSecurityProfileRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a Device Defender security profile.
Constructor and Description |
---|
CreateSecurityProfileRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSecurityProfileRequest |
addalertTargetsEntry(java.lang.String key,
AlertTarget value)
Specifies the destinations to which alerts are sent.
|
CreateSecurityProfileRequest |
clearalertTargetsEntries()
Removes all the entries added into alertTargets.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAdditionalMetricsToRetain()
Please use
CreateSecurityProfileRequest$additionalMetricsToRetainV2
instead.
|
java.util.List<MetricToRetain> |
getAdditionalMetricsToRetainV2()
A list of metrics whose data is retained (stored).
|
java.util.Map<java.lang.String,AlertTarget> |
getAlertTargets()
Specifies the destinations to which alerts are sent.
|
java.util.List<Behavior> |
getBehaviors()
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
java.lang.String |
getSecurityProfileDescription()
A description of the security profile.
|
java.lang.String |
getSecurityProfileName()
The name you are giving to the security profile.
|
java.util.List<Tag> |
getTags()
Metadata that can be used to manage the security profile.
|
int |
hashCode() |
void |
setAdditionalMetricsToRetain(java.util.Collection<java.lang.String> additionalMetricsToRetain)
Please use
CreateSecurityProfileRequest$additionalMetricsToRetainV2
instead.
|
void |
setAdditionalMetricsToRetainV2(java.util.Collection<MetricToRetain> additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).
|
void |
setAlertTargets(java.util.Map<java.lang.String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent.
|
void |
setBehaviors(java.util.Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
void |
setSecurityProfileDescription(java.lang.String securityProfileDescription)
A description of the security profile.
|
void |
setSecurityProfileName(java.lang.String securityProfileName)
The name you are giving to the security profile.
|
void |
setTags(java.util.Collection<Tag> tags)
Metadata that can be used to manage the security profile.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetain(java.util.Collection<java.lang.String> additionalMetricsToRetain)
Please use
CreateSecurityProfileRequest$additionalMetricsToRetainV2
instead.
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetain(java.lang.String... additionalMetricsToRetain)
Please use
CreateSecurityProfileRequest$additionalMetricsToRetainV2
instead.
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetainV2(java.util.Collection<MetricToRetain> additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).
|
CreateSecurityProfileRequest |
withAlertTargets(java.util.Map<java.lang.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(java.util.Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
CreateSecurityProfileRequest |
withSecurityProfileDescription(java.lang.String securityProfileDescription)
A description of the security profile.
|
CreateSecurityProfileRequest |
withSecurityProfileName(java.lang.String securityProfileName)
The name you are giving to the security profile.
|
CreateSecurityProfileRequest |
withTags(java.util.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, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.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(java.lang.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(java.lang.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 java.lang.String getSecurityProfileDescription()
A description of the security profile.
Constraints:
Length: - 1000
Pattern: [\p{Graph}\x20]*
A description of the security profile.
public void setSecurityProfileDescription(java.lang.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(java.lang.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 java.util.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(java.util.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(java.util.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 java.util.Map<java.lang.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(java.util.Map<java.lang.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(java.util.Map<java.lang.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(java.lang.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 java.util.List<java.lang.String> getAdditionalMetricsToRetain()
Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with
custom metrics; cannot be used with dimensions.
Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with custom metrics; cannot be used
with dimensions.
public void setAdditionalMetricsToRetain(java.util.Collection<java.lang.String> additionalMetricsToRetain)
Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with
custom metrics; cannot be used with dimensions.
additionalMetricsToRetain
- Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with custom metrics; cannot be
used with dimensions.
public CreateSecurityProfileRequest withAdditionalMetricsToRetain(java.lang.String... additionalMetricsToRetain)
Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with
custom metrics; cannot be used with dimensions.
Returns a reference to this object so that method calls can be chained together.
additionalMetricsToRetain
- Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with custom metrics; cannot be
used with dimensions.
public CreateSecurityProfileRequest withAdditionalMetricsToRetain(java.util.Collection<java.lang.String> additionalMetricsToRetain)
Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with
custom metrics; cannot be used with dimensions.
Returns a reference to this object so that method calls can be chained together.
additionalMetricsToRetain
- Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
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. Can be used with custom metrics; cannot be
used with dimensions.
public java.util.List<MetricToRetain> getAdditionalMetricsToRetainV2()
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. Can be used with
custom metrics; cannot be used with dimensions.
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. Can be used with custom metrics; cannot be used
with dimensions.
public void setAdditionalMetricsToRetainV2(java.util.Collection<MetricToRetain> additionalMetricsToRetainV2)
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. Can be used with
custom metrics; cannot be used with dimensions.
additionalMetricsToRetainV2
-
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. Can be used with custom metrics; cannot be
used with dimensions.
public CreateSecurityProfileRequest withAdditionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2)
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. Can be used with
custom metrics; cannot be used with dimensions.
Returns a reference to this object so that method calls can be chained together.
additionalMetricsToRetainV2
-
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. Can be used with custom metrics; cannot be
used with dimensions.
public CreateSecurityProfileRequest withAdditionalMetricsToRetainV2(java.util.Collection<MetricToRetain> additionalMetricsToRetainV2)
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. Can be used with
custom metrics; cannot be used with dimensions.
Returns a reference to this object so that method calls can be chained together.
additionalMetricsToRetainV2
-
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. Can be used with custom metrics; cannot be
used with dimensions.
public java.util.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(java.util.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(java.util.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 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.