public class UpdateSecurityProfileRequest extends AmazonWebServiceRequest implements Serializable
Updates a Device Defender security profile.
| Constructor and Description |
|---|
UpdateSecurityProfileRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateSecurityProfileRequest |
addalertTargetsEntry(String key,
AlertTarget value)
Where the alerts are sent.
|
UpdateSecurityProfileRequest |
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()
Where the alerts are sent.
|
List<Behavior> |
getBehaviors()
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
Boolean |
getDeleteAdditionalMetricsToRetain()
If true, delete all
additionalMetricsToRetain defined for
this security profile. |
Boolean |
getDeleteAlertTargets()
If true, delete all
alertTargets defined for this security
profile. |
Boolean |
getDeleteBehaviors()
If true, delete all
behaviors defined for this security
profile. |
Long |
getExpectedVersion()
The expected version of the security profile.
|
String |
getSecurityProfileDescription()
A description of the security profile.
|
String |
getSecurityProfileName()
The name of the security profile you want to update.
|
int |
hashCode() |
Boolean |
isDeleteAdditionalMetricsToRetain()
If true, delete all
additionalMetricsToRetain defined for
this security profile. |
Boolean |
isDeleteAlertTargets()
If true, delete all
alertTargets defined for this security
profile. |
Boolean |
isDeleteBehaviors()
If true, delete all
behaviors defined for this security
profile. |
void |
setAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
A list of metrics whose data is retained (stored).
|
void |
setAlertTargets(Map<String,AlertTarget> alertTargets)
Where the alerts are sent.
|
void |
setBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
void |
setDeleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain)
If true, delete all
additionalMetricsToRetain defined for
this security profile. |
void |
setDeleteAlertTargets(Boolean deleteAlertTargets)
If true, delete all
alertTargets defined for this security
profile. |
void |
setDeleteBehaviors(Boolean deleteBehaviors)
If true, delete all
behaviors defined for this security
profile. |
void |
setExpectedVersion(Long expectedVersion)
The expected version of the security profile.
|
void |
setSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
|
void |
setSecurityProfileName(String securityProfileName)
The name of the security profile you want to update.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateSecurityProfileRequest |
withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
A list of metrics whose data is retained (stored).
|
UpdateSecurityProfileRequest |
withAdditionalMetricsToRetain(String... additionalMetricsToRetain)
A list of metrics whose data is retained (stored).
|
UpdateSecurityProfileRequest |
withAlertTargets(Map<String,AlertTarget> alertTargets)
Where the alerts are sent.
|
UpdateSecurityProfileRequest |
withBehaviors(Behavior... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
UpdateSecurityProfileRequest |
withBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
|
UpdateSecurityProfileRequest |
withDeleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain)
If true, delete all
additionalMetricsToRetain defined for
this security profile. |
UpdateSecurityProfileRequest |
withDeleteAlertTargets(Boolean deleteAlertTargets)
If true, delete all
alertTargets defined for this security
profile. |
UpdateSecurityProfileRequest |
withDeleteBehaviors(Boolean deleteBehaviors)
If true, delete all
behaviors defined for this security
profile. |
UpdateSecurityProfileRequest |
withExpectedVersion(Long expectedVersion)
The expected version of the security profile.
|
UpdateSecurityProfileRequest |
withSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
|
UpdateSecurityProfileRequest |
withSecurityProfileName(String securityProfileName)
The name of the security profile you want to update.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getSecurityProfileName()
The name of the security profile you want to update.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the security profile you want to update.
public void setSecurityProfileName(String securityProfileName)
The name of the security profile you want to update.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
securityProfileName - The name of the security profile you want to update.
public UpdateSecurityProfileRequest withSecurityProfileName(String securityProfileName)
The name of the security profile you want to update.
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 of the security profile you want to update.
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 UpdateSecurityProfileRequest 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 UpdateSecurityProfileRequest 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 UpdateSecurityProfileRequest 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()
Where the alerts are sent. (Alerts are always sent to the console.)
Where the alerts are sent. (Alerts are always sent to the console.)
public void setAlertTargets(Map<String,AlertTarget> alertTargets)
Where the alerts are sent. (Alerts are always sent to the console.)
alertTargets - Where the alerts are sent. (Alerts are always sent to the console.)
public UpdateSecurityProfileRequest withAlertTargets(Map<String,AlertTarget> alertTargets)
Where the alerts are sent. (Alerts are always sent to the console.)
Returns a reference to this object so that method calls can be chained together.
alertTargets - Where the alerts are sent. (Alerts are always sent to the console.)
public UpdateSecurityProfileRequest addalertTargetsEntry(String key, AlertTarget value)
Where the alerts are sent. (Alerts are always sent to the console.)
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 UpdateSecurityProfileRequest 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 UpdateSecurityProfileRequest 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 UpdateSecurityProfileRequest 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 Boolean isDeleteBehaviors()
If true, delete all behaviors defined for this security
profile. If any behaviors are defined in the current
invocation, an exception occurs.
If true, delete all behaviors defined for this
security profile. If any behaviors are defined in
the current invocation, an exception occurs.
public Boolean getDeleteBehaviors()
If true, delete all behaviors defined for this security
profile. If any behaviors are defined in the current
invocation, an exception occurs.
If true, delete all behaviors defined for this
security profile. If any behaviors are defined in
the current invocation, an exception occurs.
public void setDeleteBehaviors(Boolean deleteBehaviors)
If true, delete all behaviors defined for this security
profile. If any behaviors are defined in the current
invocation, an exception occurs.
deleteBehaviors -
If true, delete all behaviors defined for this
security profile. If any behaviors are defined in
the current invocation, an exception occurs.
public UpdateSecurityProfileRequest withDeleteBehaviors(Boolean deleteBehaviors)
If true, delete all behaviors defined for this security
profile. If any behaviors are defined in the current
invocation, an exception occurs.
Returns a reference to this object so that method calls can be chained together.
deleteBehaviors -
If true, delete all behaviors defined for this
security profile. If any behaviors are defined in
the current invocation, an exception occurs.
public Boolean isDeleteAlertTargets()
If true, delete all alertTargets defined for this security
profile. If any alertTargets are defined in the current
invocation, an exception occurs.
If true, delete all alertTargets defined for this
security profile. If any alertTargets are defined in
the current invocation, an exception occurs.
public Boolean getDeleteAlertTargets()
If true, delete all alertTargets defined for this security
profile. If any alertTargets are defined in the current
invocation, an exception occurs.
If true, delete all alertTargets defined for this
security profile. If any alertTargets are defined in
the current invocation, an exception occurs.
public void setDeleteAlertTargets(Boolean deleteAlertTargets)
If true, delete all alertTargets defined for this security
profile. If any alertTargets are defined in the current
invocation, an exception occurs.
deleteAlertTargets -
If true, delete all alertTargets defined for this
security profile. If any alertTargets are defined
in the current invocation, an exception occurs.
public UpdateSecurityProfileRequest withDeleteAlertTargets(Boolean deleteAlertTargets)
If true, delete all alertTargets defined for this security
profile. If any alertTargets are defined in the current
invocation, an exception occurs.
Returns a reference to this object so that method calls can be chained together.
deleteAlertTargets -
If true, delete all alertTargets defined for this
security profile. If any alertTargets are defined
in the current invocation, an exception occurs.
public Boolean isDeleteAdditionalMetricsToRetain()
If true, delete all additionalMetricsToRetain defined for
this security profile. If any additionalMetricsToRetain are
defined in the current invocation, an exception occurs.
If true, delete all additionalMetricsToRetain
defined for this security profile. If any
additionalMetricsToRetain are defined in the current
invocation, an exception occurs.
public Boolean getDeleteAdditionalMetricsToRetain()
If true, delete all additionalMetricsToRetain defined for
this security profile. If any additionalMetricsToRetain are
defined in the current invocation, an exception occurs.
If true, delete all additionalMetricsToRetain
defined for this security profile. If any
additionalMetricsToRetain are defined in the current
invocation, an exception occurs.
public void setDeleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain)
If true, delete all additionalMetricsToRetain defined for
this security profile. If any additionalMetricsToRetain are
defined in the current invocation, an exception occurs.
deleteAdditionalMetricsToRetain -
If true, delete all additionalMetricsToRetain
defined for this security profile. If any
additionalMetricsToRetain are defined in the
current invocation, an exception occurs.
public UpdateSecurityProfileRequest withDeleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain)
If true, delete all additionalMetricsToRetain defined for
this security profile. If any additionalMetricsToRetain are
defined in the current invocation, an exception occurs.
Returns a reference to this object so that method calls can be chained together.
deleteAdditionalMetricsToRetain -
If true, delete all additionalMetricsToRetain
defined for this security profile. If any
additionalMetricsToRetain are defined in the
current invocation, an exception occurs.
public Long getExpectedVersion()
The expected version of the security profile. A new version is generated
whenever the security profile is updated. If you specify a value that is
different from the actual version, a
VersionConflictException is thrown.
The expected version of the security profile. A new version is
generated whenever the security profile is updated. If you
specify a value that is different from the actual version, a
VersionConflictException is thrown.
public void setExpectedVersion(Long expectedVersion)
The expected version of the security profile. A new version is generated
whenever the security profile is updated. If you specify a value that is
different from the actual version, a
VersionConflictException is thrown.
expectedVersion -
The expected version of the security profile. A new version is
generated whenever the security profile is updated. If you
specify a value that is different from the actual version, a
VersionConflictException is thrown.
public UpdateSecurityProfileRequest withExpectedVersion(Long expectedVersion)
The expected version of the security profile. A new version is generated
whenever the security profile is updated. If you specify a value that is
different from the actual version, a
VersionConflictException is thrown.
Returns a reference to this object so that method calls can be chained together.
expectedVersion -
The expected version of the security profile. A new version is
generated whenever the security profile is updated. If you
specify a value that is different from the actual version, a
VersionConflictException is thrown.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.