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
Constructors -
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.- 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 using the ListInvitation action of the GuardDuty API.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMasterProps>- Returns:
- a new instance of
CfnMasterProps - Throws:
NullPointerException- if any required attribute was not provided
-