@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateSecurityProfileRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| UpdateSecurityProfileRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| UpdateSecurityProfileRequest | addAlertTargetsEntry(String key,
                    AlertTarget value)Add a single AlertTargets entry | 
| UpdateSecurityProfileRequest | clearAlertTargetsEntries()Removes all the entries added into AlertTargets. | 
| UpdateSecurityProfileRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| List<String> | getAdditionalMetricsToRetain()Deprecated.  | 
| List<MetricToRetain> | getAdditionalMetricsToRetainV2()
 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  additionalMetricsToRetaindefined for this security profile. | 
| Boolean | getDeleteAlertTargets()
 If true, delete all  alertTargetsdefined for this security profile. | 
| Boolean | getDeleteBehaviors()
 If true, delete all  behaviorsdefined 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  additionalMetricsToRetaindefined for this security profile. | 
| Boolean | isDeleteAlertTargets()
 If true, delete all  alertTargetsdefined for this security profile. | 
| Boolean | isDeleteBehaviors()
 If true, delete all  behaviorsdefined for this security profile. | 
| void | setAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)Deprecated.  | 
| void | setAdditionalMetricsToRetainV2(Collection<MetricToRetain> additionalMetricsToRetainV2)
 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  additionalMetricsToRetaindefined for this security profile. | 
| void | setDeleteAlertTargets(Boolean deleteAlertTargets)
 If true, delete all  alertTargetsdefined for this security profile. | 
| void | setDeleteBehaviors(Boolean deleteBehaviors)
 If true, delete all  behaviorsdefined 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. | 
| UpdateSecurityProfileRequest | withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)Deprecated.  | 
| UpdateSecurityProfileRequest | withAdditionalMetricsToRetain(String... additionalMetricsToRetain)Deprecated.  | 
| UpdateSecurityProfileRequest | withAdditionalMetricsToRetainV2(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(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  additionalMetricsToRetaindefined for this security profile. | 
| UpdateSecurityProfileRequest | withDeleteAlertTargets(Boolean deleteAlertTargets)
 If true, delete all  alertTargetsdefined for this security profile. | 
| UpdateSecurityProfileRequest | withDeleteBehaviors(Boolean deleteBehaviors)
 If true, delete all  behaviorsdefined 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. | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setSecurityProfileName(String securityProfileName)
The name of the security profile you want to update.
securityProfileName - The name of the security profile you want to update.public String getSecurityProfileName()
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.
securityProfileName - The name of the security profile you want to update.public void setSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
securityProfileDescription - A description of the security profile.public String getSecurityProfileDescription()
A description of the security profile.
public UpdateSecurityProfileRequest withSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
securityProfileDescription - A description of the security profile.public List<Behavior> getBehaviors()
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.
 NOTE: This method appends the values to the existing list (if any). Use
 setBehaviors(java.util.Collection) or withBehaviors(java.util.Collection) if you want to
 override the existing values.
 
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.
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.)
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.)
alertTargets - Where the alerts are sent. (Alerts are always sent to the console.)public UpdateSecurityProfileRequest addAlertTargetsEntry(String key, AlertTarget value)
public UpdateSecurityProfileRequest clearAlertTargetsEntries()
@Deprecated public List<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.
 
         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.
@Deprecated public void setAdditionalMetricsToRetain(Collection<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.
 
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.
@Deprecated public UpdateSecurityProfileRequest withAdditionalMetricsToRetain(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.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setAdditionalMetricsToRetain(java.util.Collection) or
 withAdditionalMetricsToRetain(java.util.Collection) if you want to override the existing values.
 
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.
@Deprecated public UpdateSecurityProfileRequest withAdditionalMetricsToRetain(Collection<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.
 
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.
public 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.
public void setAdditionalMetricsToRetainV2(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.
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.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.
 NOTE: This method appends the values to the existing list (if any). Use
 setAdditionalMetricsToRetainV2(java.util.Collection) or
 withAdditionalMetricsToRetainV2(java.util.Collection) if you want to override the existing values.
 
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.public UpdateSecurityProfileRequest withAdditionalMetricsToRetainV2(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.
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.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 Boolean getDeleteBehaviors()
 If true, delete all behaviors defined for this security profile. If any behaviors are
 defined in the current invocation, an exception occurs.
 
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.
 
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 isDeleteBehaviors()
 If true, delete all behaviors defined for this security profile. If any behaviors are
 defined in the current invocation, an exception occurs.
 
behaviors defined for this security profile. If any
         behaviors 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 Boolean getDeleteAlertTargets()
 If true, delete all alertTargets defined for this security profile. If any alertTargets
 are defined in the current invocation, an exception occurs.
 
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.
 
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 isDeleteAlertTargets()
 If true, delete all alertTargets defined for this security profile. If any alertTargets
 are defined in the current invocation, an exception occurs.
 
alertTargets defined for this security profile. If any
         alertTargets 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 Boolean getDeleteAdditionalMetricsToRetain()
 If true, delete all additionalMetricsToRetain defined for this security profile. If any
 additionalMetricsToRetain are defined in the current invocation, an exception occurs.
 
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.
 
deleteAdditionalMetricsToRetain - If true, delete all additionalMetricsToRetain defined for this security profile. If any
        additionalMetricsToRetain 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.
 
additionalMetricsToRetain defined for this security profile. If any
         additionalMetricsToRetain are defined in the current invocation, an exception occurs.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 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.
 
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.
 
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()public UpdateSecurityProfileRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()