Interface CreateSecurityProfileRequest.Builder

  • Method Details

    • 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

      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

      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

      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'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(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

      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 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:
    • 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

      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

      Metadata that can be used to manage the security profile.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

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

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the MetricsExportConfig.Builder avoiding the need to create one manually via MetricsExportConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metricsExportConfig(MetricsExportConfig).

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

      CreateSecurityProfileRequest.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.