Interface CreateSecurityProfileRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateSecurityProfileRequest.Builder,CreateSecurityProfileRequest>
,IotRequest.Builder
,SdkBuilder<CreateSecurityProfileRequest.Builder,CreateSecurityProfileRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateSecurityProfileRequest
public static interface CreateSecurityProfileRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreateSecurityProfileRequest.Builder,CreateSecurityProfileRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description CreateSecurityProfileRequest.Builder
additionalMetricsToRetain(String... additionalMetricsToRetain)
Deprecated.Use additionalMetricsToRetainV2.CreateSecurityProfileRequest.Builder
additionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
Deprecated.Use additionalMetricsToRetainV2.CreateSecurityProfileRequest.Builder
additionalMetricsToRetainV2(Collection<MetricToRetain> additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).CreateSecurityProfileRequest.Builder
additionalMetricsToRetainV2(Consumer<MetricToRetain.Builder>... additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).CreateSecurityProfileRequest.Builder
additionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored).CreateSecurityProfileRequest.Builder
alertTargets(Map<AlertTargetType,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent.CreateSecurityProfileRequest.Builder
alertTargetsWithStrings(Map<String,AlertTarget> alertTargets)
Specifies the destinations to which alerts are sent.CreateSecurityProfileRequest.Builder
behaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.CreateSecurityProfileRequest.Builder
behaviors(Consumer<Behavior.Builder>... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.CreateSecurityProfileRequest.Builder
behaviors(Behavior... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.default CreateSecurityProfileRequest.Builder
metricsExportConfig(Consumer<MetricsExportConfig.Builder> metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.CreateSecurityProfileRequest.Builder
metricsExportConfig(MetricsExportConfig metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.CreateSecurityProfileRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateSecurityProfileRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateSecurityProfileRequest.Builder
securityProfileDescription(String securityProfileDescription)
A description of the security profile.CreateSecurityProfileRequest.Builder
securityProfileName(String securityProfileName)
The name you are giving to the security profile.CreateSecurityProfileRequest.Builder
tags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.CreateSecurityProfileRequest.Builder
tags(Consumer<Tag.Builder>... tags)
Metadata that can be used to manage the security profile.CreateSecurityProfileRequest.Builder
tags(Tag... tags)
Metadata that can be used to manage the security profile.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
securityProfileName
CreateSecurityProfileRequest.Builder securityProfileName(String securityProfileName)
The name you are giving to the security profile.
- Parameters:
securityProfileName
- The name you are giving to the security profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileDescription
CreateSecurityProfileRequest.Builder securityProfileDescription(String securityProfileDescription)
A description of the security profile.
- Parameters:
securityProfileDescription
- A description of the security profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behaviors
CreateSecurityProfileRequest.Builder behaviors(Collection<Behavior> behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
- Parameters:
behaviors
- Specifies the behaviors that, when violated by a device (thing), cause an alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behaviors
CreateSecurityProfileRequest.Builder behaviors(Behavior... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
- Parameters:
behaviors
- Specifies the behaviors that, when violated by a device (thing), cause an alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behaviors
CreateSecurityProfileRequest.Builder behaviors(Consumer<Behavior.Builder>... behaviors)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
This is a convenience method that creates an instance of theBehavior.Builder
avoiding the need to create one manually viaBehavior.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#behaviors(List
.) - Parameters:
behaviors
- a consumer that will call methods onBehavior.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#behaviors(java.util.Collection
)
-
alertTargetsWithStrings
CreateSecurityProfileRequest.Builder alertTargetsWithStrings(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertTargets
CreateSecurityProfileRequest.Builder alertTargets(Map<AlertTargetType,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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetain
@Deprecated CreateSecurityProfileRequest.Builder additionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
Deprecated.Use additionalMetricsToRetainV2.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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetain
@Deprecated CreateSecurityProfileRequest.Builder additionalMetricsToRetain(String... additionalMetricsToRetain)
Deprecated.Use additionalMetricsToRetainV2.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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetainV2
CreateSecurityProfileRequest.Builder additionalMetricsToRetainV2(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.- Parameters:
additionalMetricsToRetainV2
- A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile'sbehaviors
, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetainV2
CreateSecurityProfileRequest.Builder additionalMetricsToRetainV2(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.- Parameters:
additionalMetricsToRetainV2
- A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile'sbehaviors
, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetainV2
CreateSecurityProfileRequest.Builder additionalMetricsToRetainV2(Consumer<MetricToRetain.Builder>... additionalMetricsToRetainV2)
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's
This is a convenience method that creates an instance of thebehaviors
, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.MetricToRetain.Builder
avoiding the need to create one manually viaMetricToRetain.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#additionalMetricsToRetainV2(List
.) - Parameters:
additionalMetricsToRetainV2
- a consumer that will call methods onMetricToRetain.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#additionalMetricsToRetainV2(java.util.Collection
)
-
tags
CreateSecurityProfileRequest.Builder tags(Collection<Tag> tags)
Metadata that can be used to manage the security profile.
- Parameters:
tags
- Metadata that can be used to manage the security profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateSecurityProfileRequest.Builder tags(Tag... tags)
Metadata that can be used to manage the security profile.
- Parameters:
tags
- Metadata that can be used to manage the security profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateSecurityProfileRequest.Builder tags(Consumer<Tag.Builder>... tags)
Metadata that can be used to manage the security profile.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
metricsExportConfig
CreateSecurityProfileRequest.Builder metricsExportConfig(MetricsExportConfig metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.
- Parameters:
metricsExportConfig
- Specifies the MQTT topic and role ARN required for metric export.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsExportConfig
default CreateSecurityProfileRequest.Builder metricsExportConfig(Consumer<MetricsExportConfig.Builder> metricsExportConfig)
Specifies the MQTT topic and role ARN required for metric export.
This is a convenience method that creates an instance of theMetricsExportConfig.Builder
avoiding the need to create one manually viaMetricsExportConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricsExportConfig(MetricsExportConfig)
.- Parameters:
metricsExportConfig
- a consumer that will call methods onMetricsExportConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metricsExportConfig(MetricsExportConfig)
-
overrideConfiguration
CreateSecurityProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateSecurityProfileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-