@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSecurityProfileRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateSecurityProfileRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSecurityProfileRequest |
addAlertTargetsEntry(String key,
AlertTarget value)
Add a single AlertTargets entry
|
CreateSecurityProfileRequest |
clearAlertTargetsEntries()
Removes all the entries added into AlertTargets.
|
CreateSecurityProfileRequest |
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()
Specifies the destinations to which alerts are sent.
|
List<Behavior> |
getBehaviors()
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
MetricsExportConfig |
getMetricsExportConfig()
Specifies the MQTT topic and role ARN required for metric export.
|
String |
getSecurityProfileDescription()
A description of the security profile.
|
String |
getSecurityProfileName()
The name you are giving to the security profile.
|
List<Tag> |
getTags()
Metadata that can be used to manage 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)
Specifies the destinations to which alerts are sent.
|
void |
setBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
void |
setMetricsExportConfig(MetricsExportConfig metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.
|
void |
setSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
|
void |
setSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
|
void |
setTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
|
String |
toString()
Returns a string representation of this object.
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
Deprecated.
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetain(String... additionalMetricsToRetain)
Deprecated.
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetainV2(Collection<MetricToRetain> additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).
|
CreateSecurityProfileRequest |
withAdditionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).
|
CreateSecurityProfileRequest |
withAlertTargets(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent.
|
CreateSecurityProfileRequest |
withBehaviors(Behavior... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
CreateSecurityProfileRequest |
withBehaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
CreateSecurityProfileRequest |
withMetricsExportConfig(MetricsExportConfig metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.
|
CreateSecurityProfileRequest |
withSecurityProfileDescription(String securityProfileDescription)
A description of the security profile.
|
CreateSecurityProfileRequest |
withSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
|
CreateSecurityProfileRequest |
withTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
|
CreateSecurityProfileRequest |
withTags(Tag... tags)
Metadata that can be used to manage the security profile.
|
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, withSdkRequestTimeout
public void setSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
securityProfileName
- The name you are giving to the security profile.public String getSecurityProfileName()
The name you are giving to the security profile.
public CreateSecurityProfileRequest withSecurityProfileName(String securityProfileName)
The name you are giving to the security profile.
securityProfileName
- The name you are giving to the security profile.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 CreateSecurityProfileRequest 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 CreateSecurityProfileRequest 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 CreateSecurityProfileRequest 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()
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
public void setAlertTargets(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
alertTargets
- Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are
generated when a device (thing) violates a behavior.public CreateSecurityProfileRequest withAlertTargets(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
alertTargets
- Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are
generated when a device (thing) violates a behavior.public CreateSecurityProfileRequest addAlertTargetsEntry(String key, AlertTarget value)
public CreateSecurityProfileRequest clearAlertTargetsEntries()
@Deprecated public List<String> getAdditionalMetricsToRetain()
Please use CreateSecurityProfileRequest$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.
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.
@Deprecated public void setAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
Please use CreateSecurityProfileRequest$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 CreateSecurityProfileRequest$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.
@Deprecated public CreateSecurityProfileRequest withAdditionalMetricsToRetain(String... additionalMetricsToRetain)
Please use CreateSecurityProfileRequest$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.
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 CreateSecurityProfileRequest$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.
@Deprecated public CreateSecurityProfileRequest withAdditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
Please use CreateSecurityProfileRequest$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 CreateSecurityProfileRequest$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 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.
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(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 CreateSecurityProfileRequest 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.
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. Can be used with
custom metrics; cannot be used with dimensions.public CreateSecurityProfileRequest 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. 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 List<Tag> getTags()
Metadata that can be used to manage the security profile.
public void setTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
tags
- Metadata that can be used to manage the security profile.public CreateSecurityProfileRequest withTags(Tag... tags)
Metadata that can be used to manage the security profile.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Metadata that can be used to manage the security profile.public CreateSecurityProfileRequest withTags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
tags
- Metadata that can be used to manage the security profile.public void setMetricsExportConfig(MetricsExportConfig metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.
metricsExportConfig
- Specifies the MQTT topic and role ARN required for metric export.public MetricsExportConfig getMetricsExportConfig()
Specifies the MQTT topic and role ARN required for metric export.
public CreateSecurityProfileRequest withMetricsExportConfig(MetricsExportConfig metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.
metricsExportConfig
- Specifies the MQTT topic and role ARN required for metric export.public String toString()
toString
in class Object
Object.toString()
public CreateSecurityProfileRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()