Class CfnMasterProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnMasterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMasterProps>
- Enclosing interface:
CfnMasterProps
@Stability(Stable)
public static final class CfnMasterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMasterProps>
A builder for
CfnMasterProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.detectorId
(String detectorId) Sets the value ofCfnMasterProps.getDetectorId()
invitationId
(String invitationId) Sets the value ofCfnMasterProps.getInvitationId()
Sets the value ofCfnMasterProps.getMasterId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorId
Sets the value ofCfnMasterProps.getDetectorId()
- Parameters:
detectorId
- The unique ID of the detector of the GuardDuty member account. This parameter is required. To find thedetectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
this
-
masterId
Sets the value ofCfnMasterProps.getMasterId()
- Parameters:
masterId
- The AWS account ID of the account designated as the GuardDuty administrator account. This parameter is required.- Returns:
this
-
invitationId
Sets the value ofCfnMasterProps.getInvitationId()
- Parameters:
invitationId
- The ID of the invitation that is sent to the account designated as a member account. You can find the invitation ID by running the ListInvitations in the GuardDuty API Reference .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMasterProps>
- Returns:
- a new instance of
CfnMasterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-