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) |
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.
|
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() |
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 |
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 |
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 |
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 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 than 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 than 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 than 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 than 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 than 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 than the actual version, a
VersionConflictException is thrown.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.