Class CfnIPSetProps.Builder

java.lang.Object
software.amazon.awscdk.services.guardduty.CfnIPSetProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIPSetProps>
Enclosing interface:
CfnIPSetProps

@Stability(Stable) public static final class CfnIPSetProps.Builder extends Object implements software.amazon.jsii.Builder<CfnIPSetProps>
A builder for CfnIPSetProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • format

      @Stability(Stable) public CfnIPSetProps.Builder format(String format)
      Sets the value of CfnIPSetProps.getFormat()
      Parameters:
      format - The format of the file that contains the IPSet. This parameter is required. For information about supported formats, see List formats in the Amazon GuardDuty User Guide .
      Returns:
      this
    • location

      @Stability(Stable) public CfnIPSetProps.Builder location(String location)
      Sets the value of CfnIPSetProps.getLocation()
      Parameters:
      location - The URI of the file that contains the IPSet. This parameter is required.
      Returns:
      this
    • activate

      @Stability(Stable) public CfnIPSetProps.Builder activate(Boolean activate)
      Sets the value of CfnIPSetProps.getActivate()
      Parameters:
      activate - A boolean value that determines if GuardDuty can start using this list for custom threat detection. For GuardDuty to prevent generating findings based on an activity associated with these entries, this list must be active.
      Returns:
      this
    • activate

      @Stability(Stable) public CfnIPSetProps.Builder activate(IResolvable activate)
      Sets the value of CfnIPSetProps.getActivate()
      Parameters:
      activate - A boolean value that determines if GuardDuty can start using this list for custom threat detection. For GuardDuty to prevent generating findings based on an activity associated with these entries, this list must be active.
      Returns:
      this
    • detectorId

      @Stability(Stable) public CfnIPSetProps.Builder detectorId(String detectorId)
      Parameters:
      detectorId - The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
      Returns:
      this
    • expectedBucketOwner

      @Stability(Stable) public CfnIPSetProps.Builder expectedBucketOwner(String expectedBucketOwner)
      Parameters:
      expectedBucketOwner - The AWS account ID that owns the Amazon S3 bucket specified in the Location field. When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation.
      Returns:
      this
    • name

      @Stability(Stable) public CfnIPSetProps.Builder name(String name)
      Sets the value of CfnIPSetProps.getName()
      Parameters:
      name - The user-friendly name to identify the IPSet. The name of your list must be unique within an AWS account and Region. Valid characters are alphanumeric, whitespace, dash (-), and underscores (_).
      Returns:
      this
    • tags

      @Stability(Stable) public CfnIPSetProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnIPSetProps.getTags()
      Parameters:
      tags - The tags to be added to a new threat entity set resource. Each tag consists of a key and an optional value, both of which you define.

      For more information, see Tag .

      Returns:
      this
    • build

      @Stability(Stable) public CfnIPSetProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnIPSetProps>
      Returns:
      a new instance of CfnIPSetProps
      Throws:
      NullPointerException - if any required attribute was not provided