@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateSecurityProfileResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
UpdateSecurityProfileResult() |
Modifier and Type | Method and Description |
---|---|
UpdateSecurityProfileResult |
addAlertTargetsEntry(String key,
AlertTarget value)
Add a single AlertTargets entry
|
UpdateSecurityProfileResult |
clearAlertTargetsEntries()
Removes all the entries added into AlertTargets.
|
UpdateSecurityProfileResult |
clone() |
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.
|
Date |
getCreationDate()
The time the security profile was created.
|
Date |
getLastModifiedDate()
The time the security profile was last modified.
|
String |
getSecurityProfileArn()
The ARN of the security profile that was updated.
|
String |
getSecurityProfileDescription()
The description of the security profile.
|
String |
getSecurityProfileName()
The name of the security profile that was updated.
|
Long |
getVersion()
The updated version of the security profile.
|
int |
hashCode() |
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 |
setCreationDate(Date creationDate)
The time the security profile was created.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The time the security profile was last modified.
|
void |
setSecurityProfileArn(String securityProfileArn)
The ARN of the security profile that was updated.
|
void |
setSecurityProfileDescription(String securityProfileDescription)
The description of the security profile.
|
void |
setSecurityProfileName(String securityProfileName)
The name of the security profile that was updated.
|
void |
setVersion(Long version)
The updated version of the security profile.
|
String |
toString()
Returns a string representation of this object.
|
UpdateSecurityProfileResult |
withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
Deprecated.
|
UpdateSecurityProfileResult |
withAdditionalMetricsToRetain(String... additionalMetricsToRetain)
Deprecated.
|
UpdateSecurityProfileResult |
withAdditionalMetricsToRetainV2(Collection<MetricToRetain> additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).
|
UpdateSecurityProfileResult |
withAdditionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).
|
UpdateSecurityProfileResult |
withAlertTargets(Map<String,AlertTarget> alertTargets)
Where the alerts are sent.
|
UpdateSecurityProfileResult |
withBehaviors(Behavior... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
UpdateSecurityProfileResult |
withBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
UpdateSecurityProfileResult |
withCreationDate(Date creationDate)
The time the security profile was created.
|
UpdateSecurityProfileResult |
withLastModifiedDate(Date lastModifiedDate)
The time the security profile was last modified.
|
UpdateSecurityProfileResult |
withSecurityProfileArn(String securityProfileArn)
The ARN of the security profile that was updated.
|
UpdateSecurityProfileResult |
withSecurityProfileDescription(String securityProfileDescription)
The description of the security profile.
|
UpdateSecurityProfileResult |
withSecurityProfileName(String securityProfileName)
The name of the security profile that was updated.
|
UpdateSecurityProfileResult |
withVersion(Long version)
The updated version of the security profile.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setSecurityProfileName(String securityProfileName)
The name of the security profile that was updated.
securityProfileName
- The name of the security profile that was updated.public String getSecurityProfileName()
The name of the security profile that was updated.
public UpdateSecurityProfileResult withSecurityProfileName(String securityProfileName)
The name of the security profile that was updated.
securityProfileName
- The name of the security profile that was updated.public void setSecurityProfileArn(String securityProfileArn)
The ARN of the security profile that was updated.
securityProfileArn
- The ARN of the security profile that was updated.public String getSecurityProfileArn()
The ARN of the security profile that was updated.
public UpdateSecurityProfileResult withSecurityProfileArn(String securityProfileArn)
The ARN of the security profile that was updated.
securityProfileArn
- The ARN of the security profile that was updated.public void setSecurityProfileDescription(String securityProfileDescription)
The description of the security profile.
securityProfileDescription
- The description of the security profile.public String getSecurityProfileDescription()
The description of the security profile.
public UpdateSecurityProfileResult withSecurityProfileDescription(String securityProfileDescription)
The description of the security profile.
securityProfileDescription
- The 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 UpdateSecurityProfileResult 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 UpdateSecurityProfileResult 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 UpdateSecurityProfileResult 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 UpdateSecurityProfileResult addAlertTargetsEntry(String key, AlertTarget value)
public UpdateSecurityProfileResult clearAlertTargetsEntries()
@Deprecated public List<String> getAdditionalMetricsToRetain()
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
security profile's behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
@Deprecated 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
security profile's behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
additionalMetricsToRetain
- A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
security profile's behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
@Deprecated public UpdateSecurityProfileResult withAdditionalMetricsToRetain(String... additionalMetricsToRetain)
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
security profile's behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
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
- A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
security profile's behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
@Deprecated public UpdateSecurityProfileResult withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
security profile's behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
additionalMetricsToRetain
- A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
security profile's behaviors
, but it is also retained for any metric specified here.
Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
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 UpdateSecurityProfileResult 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 UpdateSecurityProfileResult 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 setVersion(Long version)
The updated version of the security profile.
version
- The updated version of the security profile.public Long getVersion()
The updated version of the security profile.
public UpdateSecurityProfileResult withVersion(Long version)
The updated version of the security profile.
version
- The updated version of the security profile.public void setCreationDate(Date creationDate)
The time the security profile was created.
creationDate
- The time the security profile was created.public Date getCreationDate()
The time the security profile was created.
public UpdateSecurityProfileResult withCreationDate(Date creationDate)
The time the security profile was created.
creationDate
- The time the security profile was created.public void setLastModifiedDate(Date lastModifiedDate)
The time the security profile was last modified.
lastModifiedDate
- The time the security profile was last modified.public Date getLastModifiedDate()
The time the security profile was last modified.
public UpdateSecurityProfileResult withLastModifiedDate(Date lastModifiedDate)
The time the security profile was last modified.
lastModifiedDate
- The time the security profile was last modified.public String toString()
toString
in class Object
Object.toString()
public UpdateSecurityProfileResult clone()