public class UpdateSecurityProfileRequest extends AmazonWebServiceRequest implements java.io.Serializable
Updates a Device Defender security profile.
| Constructor and Description | 
|---|
| UpdateSecurityProfileRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| UpdateSecurityProfileRequest | addalertTargetsEntry(java.lang.String key,
                    AlertTarget value)
 Where the alerts are sent. | 
| UpdateSecurityProfileRequest | clearalertTargetsEntries()Removes all the entries added into alertTargets. | 
| boolean | equals(java.lang.Object obj) | 
| java.util.List<java.lang.String> | getAdditionalMetricsToRetain()
 Please use
 UpdateSecurityProfileRequest$additionalMetricsToRetainV2
 instead. | 
| java.util.List<MetricToRetain> | getAdditionalMetricsToRetainV2()
 A list of metrics whose data is retained (stored). | 
| java.util.Map<java.lang.String,AlertTarget> | getAlertTargets()
 Where the alerts are sent. | 
| java.util.List<Behavior> | getBehaviors()
 Specifies the behaviors that, when violated by a device (thing), cause an
 alert. | 
| java.lang.Boolean | getDeleteAdditionalMetricsToRetain()
 If true, delete all  additionalMetricsToRetaindefined for
 this security profile. | 
| java.lang.Boolean | getDeleteAlertTargets()
 If true, delete all  alertTargetsdefined for this security
 profile. | 
| java.lang.Boolean | getDeleteBehaviors()
 If true, delete all  behaviorsdefined for this security
 profile. | 
| java.lang.Long | getExpectedVersion()
 The expected version of the security profile. | 
| java.lang.String | getSecurityProfileDescription()
 A description of the security profile. | 
| java.lang.String | getSecurityProfileName()
 The name of the security profile you want to update. | 
| int | hashCode() | 
| java.lang.Boolean | isDeleteAdditionalMetricsToRetain()
 If true, delete all  additionalMetricsToRetaindefined for
 this security profile. | 
| java.lang.Boolean | isDeleteAlertTargets()
 If true, delete all  alertTargetsdefined for this security
 profile. | 
| java.lang.Boolean | isDeleteBehaviors()
 If true, delete all  behaviorsdefined for this security
 profile. | 
| void | setAdditionalMetricsToRetain(java.util.Collection<java.lang.String> additionalMetricsToRetain)
 Please use
 UpdateSecurityProfileRequest$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)
 Where the alerts are sent. | 
| void | setBehaviors(java.util.Collection<Behavior> behaviors)
 Specifies the behaviors that, when violated by a device (thing), cause an
 alert. | 
| void | setDeleteAdditionalMetricsToRetain(java.lang.Boolean deleteAdditionalMetricsToRetain)
 If true, delete all  additionalMetricsToRetaindefined for
 this security profile. | 
| void | setDeleteAlertTargets(java.lang.Boolean deleteAlertTargets)
 If true, delete all  alertTargetsdefined for this security
 profile. | 
| void | setDeleteBehaviors(java.lang.Boolean deleteBehaviors)
 If true, delete all  behaviorsdefined for this security
 profile. | 
| void | setExpectedVersion(java.lang.Long expectedVersion)
 The expected version of the security profile. | 
| void | setSecurityProfileDescription(java.lang.String securityProfileDescription)
 A description of the security profile. | 
| void | setSecurityProfileName(java.lang.String securityProfileName)
 The name of the security profile you want to update. | 
| java.lang.String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| UpdateSecurityProfileRequest | withAdditionalMetricsToRetain(java.util.Collection<java.lang.String> additionalMetricsToRetain)
 Please use
 UpdateSecurityProfileRequest$additionalMetricsToRetainV2
 instead. | 
| UpdateSecurityProfileRequest | withAdditionalMetricsToRetain(java.lang.String... additionalMetricsToRetain)
 Please use
 UpdateSecurityProfileRequest$additionalMetricsToRetainV2
 instead. | 
| UpdateSecurityProfileRequest | withAdditionalMetricsToRetainV2(java.util.Collection<MetricToRetain> additionalMetricsToRetainV2)
 A list of metrics whose data is retained (stored). | 
| UpdateSecurityProfileRequest | withAdditionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2)
 A list of metrics whose data is retained (stored). | 
| UpdateSecurityProfileRequest | withAlertTargets(java.util.Map<java.lang.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(java.util.Collection<Behavior> behaviors)
 Specifies the behaviors that, when violated by a device (thing), cause an
 alert. | 
| UpdateSecurityProfileRequest | withDeleteAdditionalMetricsToRetain(java.lang.Boolean deleteAdditionalMetricsToRetain)
 If true, delete all  additionalMetricsToRetaindefined for
 this security profile. | 
| UpdateSecurityProfileRequest | withDeleteAlertTargets(java.lang.Boolean deleteAlertTargets)
 If true, delete all  alertTargetsdefined for this security
 profile. | 
| UpdateSecurityProfileRequest | withDeleteBehaviors(java.lang.Boolean deleteBehaviors)
 If true, delete all  behaviorsdefined for this security
 profile. | 
| UpdateSecurityProfileRequest | withExpectedVersion(java.lang.Long expectedVersion)
 The expected version of the security profile. | 
| UpdateSecurityProfileRequest | withSecurityProfileDescription(java.lang.String securityProfileDescription)
 A description of the security profile. | 
| UpdateSecurityProfileRequest | withSecurityProfileName(java.lang.String securityProfileName)
 The name of the security profile you want to update. | 
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.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(java.lang.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(java.lang.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 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 UpdateSecurityProfileRequest 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 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(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()
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(java.util.Map<java.lang.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(java.util.Map<java.lang.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(java.lang.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 java.util.List<java.lang.String> getAdditionalMetricsToRetain()
Please use UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest withAdditionalMetricsToRetain(java.lang.String... additionalMetricsToRetain)
Please use UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest withAdditionalMetricsToRetain(java.util.Collection<java.lang.String> additionalMetricsToRetain)
Please use UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest$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 UpdateSecurityProfileRequest 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 UpdateSecurityProfileRequest 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.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.