Interface UpdateSecurityProfileResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<UpdateSecurityProfileResponse.Builder,
,UpdateSecurityProfileResponse> IotResponse.Builder
,SdkBuilder<UpdateSecurityProfileResponse.Builder,
,UpdateSecurityProfileResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
UpdateSecurityProfileResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalMetricsToRetain
(String... additionalMetricsToRetain) Deprecated.Use additionalMetricsToRetainV2.additionalMetricsToRetain
(Collection<String> additionalMetricsToRetain) Deprecated.Use additionalMetricsToRetainV2.additionalMetricsToRetainV2
(Collection<MetricToRetain> additionalMetricsToRetainV2) A list of metrics whose data is retained (stored).additionalMetricsToRetainV2
(Consumer<MetricToRetain.Builder>... additionalMetricsToRetainV2) A list of metrics whose data is retained (stored).additionalMetricsToRetainV2
(MetricToRetain... additionalMetricsToRetainV2) A list of metrics whose data is retained (stored).alertTargets
(Map<AlertTargetType, AlertTarget> alertTargets) Where the alerts are sent.alertTargetsWithStrings
(Map<String, AlertTarget> alertTargets) Where the alerts are sent.behaviors
(Collection<Behavior> behaviors) Specifies the behaviors that, when violated by a device (thing), cause an alert.behaviors
(Consumer<Behavior.Builder>... behaviors) Specifies the behaviors that, when violated by a device (thing), cause an alert.Specifies the behaviors that, when violated by a device (thing), cause an alert.creationDate
(Instant creationDate) The time the security profile was created.lastModifiedDate
(Instant lastModifiedDate) The time the security profile was last modified.securityProfileArn
(String securityProfileArn) The ARN of the security profile that was updated.securityProfileDescription
(String securityProfileDescription) The description of the security profile.securityProfileName
(String securityProfileName) The name of the security profile that was updated.The updated version of the security profile.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
securityProfileName
The name of the security profile that was updated.
- Parameters:
securityProfileName
- The name of the security profile that was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileArn
The ARN of the security profile that was updated.
- Parameters:
securityProfileArn
- The ARN of the security profile that was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileDescription
The description of the security profile.
- Parameters:
securityProfileDescription
- The description of the security profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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 tobehaviors(List<Behavior>)
.- 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:
-
alertTargetsWithStrings
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
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 UpdateSecurityProfileResponse.Builder additionalMetricsToRetain(Collection<String> additionalMetricsToRetain) Deprecated.Use additionalMetricsToRetainV2.Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
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.- Parameters:
additionalMetricsToRetain
- Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetain
@Deprecated UpdateSecurityProfileResponse.Builder additionalMetricsToRetain(String... additionalMetricsToRetain) Deprecated.Use additionalMetricsToRetainV2.Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.
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.- Parameters:
additionalMetricsToRetain
- Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead.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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMetricsToRetainV2
UpdateSecurityProfileResponse.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
UpdateSecurityProfileResponse.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
UpdateSecurityProfileResponse.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.Builder
avoiding the need to create one manually viaMetricToRetain.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadditionalMetricsToRetainV2(List<MetricToRetain>)
.- 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:
-
version
The updated version of the security profile.
- Parameters:
version
- The updated version of the security profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The time the security profile was created.
- Parameters:
creationDate
- The time the security profile was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedDate
The time the security profile was last modified.
- Parameters:
lastModifiedDate
- The time the security profile was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-