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 Details

    • 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

      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 the Behavior.Builder avoiding the need to create one manually via Behavior.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to behaviors(List<Behavior>).

      Parameters:
      behaviors - a consumer that will call methods on Behavior.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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 the MetricToRetain.Builder avoiding the need to create one manually via MetricToRetain.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to additionalMetricsToRetainV2(List<MetricToRetain>).

      Parameters:
      additionalMetricsToRetainV2 - a consumer that will call methods on MetricToRetain.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deleteBehaviors

      UpdateSecurityProfileRequest.Builder deleteBehaviors(Boolean deleteBehaviors)

      If true, delete all behaviors defined for this security profile. If any behaviors are defined in the current invocation, an exception occurs.

      Parameters:
      deleteBehaviors - If true, delete all behaviors defined for this security profile. If any behaviors are 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 alertTargets defined for this security profile. If any alertTargets are defined in the current invocation, an exception occurs.

      Parameters:
      deleteAlertTargets - If true, delete all alertTargets defined for this security profile. If any alertTargets are 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 additionalMetricsToRetain defined for this security profile. If any additionalMetricsToRetain are defined in the current invocation, an exception occurs.

      Parameters:
      deleteAdditionalMetricsToRetain - If true, delete all additionalMetricsToRetain defined for this security profile. If any additionalMetricsToRetain are 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 VersionConflictException is 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, a VersionConflictException is thrown.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      UpdateSecurityProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.