Interface UpdateSecurityProfileRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateSecurityProfileRequest.Builder,UpdateSecurityProfileRequest>,IotRequest.Builder,SdkBuilder<UpdateSecurityProfileRequest.Builder,UpdateSecurityProfileRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateSecurityProfileRequest
public static interface UpdateSecurityProfileRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<UpdateSecurityProfileRequest.Builder,UpdateSecurityProfileRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description UpdateSecurityProfileRequest.BuilderadditionalMetricsToRetain(String... additionalMetricsToRetain)Deprecated.Use additionalMetricsToRetainV2.UpdateSecurityProfileRequest.BuilderadditionalMetricsToRetain(Collection<String> additionalMetricsToRetain)Deprecated.Use additionalMetricsToRetainV2.UpdateSecurityProfileRequest.BuilderadditionalMetricsToRetainV2(Collection<MetricToRetain> additionalMetricsToRetainV2)A list of metrics whose data is retained (stored).UpdateSecurityProfileRequest.BuilderadditionalMetricsToRetainV2(Consumer<MetricToRetain.Builder>... additionalMetricsToRetainV2)A list of metrics whose data is retained (stored).UpdateSecurityProfileRequest.BuilderadditionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2)A list of metrics whose data is retained (stored).UpdateSecurityProfileRequest.BuilderalertTargets(Map<AlertTargetType,AlertTarget> alertTargets)Where the alerts are sent.UpdateSecurityProfileRequest.BuilderalertTargetsWithStrings(Map<String,AlertTarget> alertTargets)Where the alerts are sent.UpdateSecurityProfileRequest.Builderbehaviors(Collection<Behavior> behaviors)Specifies the behaviors that, when violated by a device (thing), cause an alert.UpdateSecurityProfileRequest.Builderbehaviors(Consumer<Behavior.Builder>... behaviors)Specifies the behaviors that, when violated by a device (thing), cause an alert.UpdateSecurityProfileRequest.Builderbehaviors(Behavior... behaviors)Specifies the behaviors that, when violated by a device (thing), cause an alert.UpdateSecurityProfileRequest.BuilderdeleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain)If true, delete alladditionalMetricsToRetaindefined for this security profile.UpdateSecurityProfileRequest.BuilderdeleteAlertTargets(Boolean deleteAlertTargets)If true, delete allalertTargetsdefined for this security profile.UpdateSecurityProfileRequest.BuilderdeleteBehaviors(Boolean deleteBehaviors)If true, delete allbehaviorsdefined for this security profile.UpdateSecurityProfileRequest.BuilderdeleteMetricsExportConfig(Boolean deleteMetricsExportConfig)Set the value as true to delete metrics export related configurations.UpdateSecurityProfileRequest.BuilderexpectedVersion(Long expectedVersion)The expected version of the security profile.default UpdateSecurityProfileRequest.BuildermetricsExportConfig(Consumer<MetricsExportConfig.Builder> metricsExportConfig)Specifies the MQTT topic and role ARN required for metric export.UpdateSecurityProfileRequest.BuildermetricsExportConfig(MetricsExportConfig metricsExportConfig)Specifies the MQTT topic and role ARN required for metric export.UpdateSecurityProfileRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateSecurityProfileRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateSecurityProfileRequest.BuildersecurityProfileDescription(String securityProfileDescription)A description of the security profile.UpdateSecurityProfileRequest.BuildersecurityProfileName(String securityProfileName)The name of the security profile you want to update.-
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
UpdateSecurityProfileRequest.Builder securityProfileName(String securityProfileName)
The name of the security profile you want to update.
- Parameters:
securityProfileName- The name of the security profile you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileDescription
UpdateSecurityProfileRequest.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
UpdateSecurityProfileRequest.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
UpdateSecurityProfileRequest.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
UpdateSecurityProfileRequest.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.Builderavoiding the need to create one manually viaBehavior.builder().When the
Consumercompletes,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
UpdateSecurityProfileRequest.Builder alertTargetsWithStrings(Map<String,AlertTarget> alertTargets)
Where the alerts are sent. (Alerts are always sent to the console.)
- Parameters:
alertTargets- Where the alerts are sent. (Alerts are always sent to the console.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertTargets
UpdateSecurityProfileRequest.Builder alertTargets(Map<AlertTargetType,AlertTarget> alertTargets)
Where the alerts are sent. (Alerts are always sent to the console.)
- Parameters:
alertTargets- Where the alerts are sent. (Alerts are always sent to the console.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetain
@Deprecated UpdateSecurityProfileRequest.Builder additionalMetricsToRetain(Collection<String> additionalMetricsToRetain)
Deprecated.Use additionalMetricsToRetainV2.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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetain
@Deprecated UpdateSecurityProfileRequest.Builder additionalMetricsToRetain(String... additionalMetricsToRetain)
Deprecated.Use additionalMetricsToRetainV2.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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetainV2
UpdateSecurityProfileRequest.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'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
UpdateSecurityProfileRequest.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'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
UpdateSecurityProfileRequest.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 behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.
This is a convenience method that creates an instance of theMetricToRetain.Builderavoiding the need to create one manually viaMetricToRetain.builder().When the
Consumercompletes,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)
-
deleteBehaviors
UpdateSecurityProfileRequest.Builder deleteBehaviors(Boolean deleteBehaviors)
If true, delete all
behaviorsdefined for this security profile. If anybehaviorsare defined in the current invocation, an exception occurs.- Parameters:
deleteBehaviors- If true, delete allbehaviorsdefined for this security profile. If anybehaviorsare defined in the current invocation, an exception occurs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteAlertTargets
UpdateSecurityProfileRequest.Builder deleteAlertTargets(Boolean deleteAlertTargets)
If true, delete all
alertTargetsdefined for this security profile. If anyalertTargetsare defined in the current invocation, an exception occurs.- Parameters:
deleteAlertTargets- If true, delete allalertTargetsdefined for this security profile. If anyalertTargetsare defined in the current invocation, an exception occurs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteAdditionalMetricsToRetain
UpdateSecurityProfileRequest.Builder deleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain)
If true, delete all
additionalMetricsToRetaindefined for this security profile. If anyadditionalMetricsToRetainare defined in the current invocation, an exception occurs.- Parameters:
deleteAdditionalMetricsToRetain- If true, delete alladditionalMetricsToRetaindefined for this security profile. If anyadditionalMetricsToRetainare defined in the current invocation, an exception occurs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedVersion
UpdateSecurityProfileRequest.Builder expectedVersion(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
VersionConflictExceptionis thrown.- Parameters:
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, aVersionConflictExceptionis thrown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsExportConfig
UpdateSecurityProfileRequest.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 UpdateSecurityProfileRequest.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.Builderavoiding the need to create one manually viaMetricsExportConfig.builder().When the
Consumercompletes,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)
-
deleteMetricsExportConfig
UpdateSecurityProfileRequest.Builder deleteMetricsExportConfig(Boolean deleteMetricsExportConfig)
Set the value as true to delete metrics export related configurations.
- Parameters:
deleteMetricsExportConfig- Set the value as true to delete metrics export related configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateSecurityProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateSecurityProfileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-