Class CfnIPSet.Builder

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

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

    • create

      @Stability(Stable) public static CfnIPSet.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnIPSet.Builder.
    • activate

      @Stability(Stable) public CfnIPSet.Builder activate(Boolean activate)
      Indicates whether or not GuardDuty uses the IPSet .

      Parameters:
      activate - Indicates whether or not GuardDuty uses the IPSet . This parameter is required.
      Returns:
      this
    • activate

      @Stability(Stable) public CfnIPSet.Builder activate(IResolvable activate)
      Indicates whether or not GuardDuty uses the IPSet .

      Parameters:
      activate - Indicates whether or not GuardDuty uses the IPSet . This parameter is required.
      Returns:
      this
    • detectorId

      @Stability(Stable) public CfnIPSet.Builder detectorId(String detectorId)
      The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.

      Parameters:
      detectorId - The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. This parameter is required.
      Returns:
      this
    • format

      @Stability(Stable) public CfnIPSet.Builder format(String format)
      The format of the file that contains the IPSet.

      Parameters:
      format - The format of the file that contains the IPSet. This parameter is required.
      Returns:
      this
    • location

      @Stability(Stable) public CfnIPSet.Builder location(String location)
      The URI of the file that contains the IPSet.

      Parameters:
      location - The URI of the file that contains the IPSet. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnIPSet.Builder name(String name)
      The user-friendly name to identify the IPSet.

      Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).

      Parameters:
      name - The user-friendly name to identify the IPSet. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnIPSet.Builder tags(List<? extends CfnTag> tags)
      The tags to be added to a new IP set resource.

      Each tag consists of a key and an optional value, both of which you define.

      For more information, see Tag .

      Parameters:
      tags - The tags to be added to a new IP set resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnIPSet build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnIPSet>
      Returns:
      a newly built instance of CfnIPSet.