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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnIPSetProps.getActivate()
activate
(IResolvable activate) Sets the value ofCfnIPSetProps.getActivate()
build()
Builds the configured instance.detectorId
(String detectorId) Sets the value ofCfnIPSetProps.getDetectorId()
Sets the value ofCfnIPSetProps.getFormat()
Sets the value ofCfnIPSetProps.getLocation()
Sets the value ofCfnIPSetProps.getName()
Sets the value ofCfnIPSetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
Sets the value ofCfnIPSetProps.getFormat()
- Parameters:
format
- The format of the file that contains the IPSet. This parameter is required.- Returns:
this
-
location
Sets the value ofCfnIPSetProps.getLocation()
- Parameters:
location
- The URI of the file that contains the IPSet. This parameter is required.- Returns:
this
-
activate
Sets the value ofCfnIPSetProps.getActivate()
- Parameters:
activate
- Indicates whether or not GuardDuty uses theIPSet
.- Returns:
this
-
activate
Sets the value ofCfnIPSetProps.getActivate()
- Parameters:
activate
- Indicates whether or not GuardDuty uses theIPSet
.- Returns:
this
-
detectorId
Sets the value ofCfnIPSetProps.getDetectorId()
- Parameters:
detectorId
- The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. To find thedetectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
this
-
name
Sets the value ofCfnIPSetProps.getName()
- Parameters:
name
- The user-friendly name to identify the IPSet. Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).- Returns:
this
-
tags
Sets the value ofCfnIPSetProps.getTags()
- Parameters:
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 .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIPSetProps>
- Returns:
- a new instance of
CfnIPSetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-