Class MasterReference.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.MasterReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MasterReference>
- Enclosing interface:
MasterReference
@Stability(Stable)
public static final class MasterReference.Builder
extends Object
implements software.amazon.jsii.Builder<MasterReference>
A builder for
MasterReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.detectorId
(String detectorId) Sets the value ofMasterReference.getDetectorId()
Sets the value ofMasterReference.getMasterId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorId
Sets the value ofMasterReference.getDetectorId()
- Parameters:
detectorId
- The DetectorId of the Master resource. This parameter is required.- Returns:
this
-
masterId
Sets the value ofMasterReference.getMasterId()
- Parameters:
masterId
- The MasterId of the Master resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MasterReference>
- Returns:
- a new instance of
MasterReference
- Throws:
NullPointerException
- if any required attribute was not provided
-