Class CfnMemberMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.mixins.CfnMemberMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMemberMixinProps>
- Enclosing interface:
CfnMemberMixinProps
@Stability(Stable)
public static final class CfnMemberMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMemberMixinProps>
A builder for
CfnMemberMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.detectorId(String detectorId) Sets the value ofCfnMemberMixinProps.getDetectorId()disableEmailNotification(Boolean disableEmailNotification) Sets the value ofCfnMemberMixinProps.getDisableEmailNotification()disableEmailNotification(IResolvable disableEmailNotification) Sets the value ofCfnMemberMixinProps.getDisableEmailNotification()Sets the value ofCfnMemberMixinProps.getEmail()Sets the value ofCfnMemberMixinProps.getMemberId()Sets the value ofCfnMemberMixinProps.getMessage()Sets the value ofCfnMemberMixinProps.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorId
Sets the value ofCfnMemberMixinProps.getDetectorId()- Parameters:
detectorId- The ID of the detector associated with the GuardDuty service to add the member to.- Returns:
this
-
disableEmailNotification
@Stability(Stable) public CfnMemberMixinProps.Builder disableEmailNotification(Boolean disableEmailNotification) Sets the value ofCfnMemberMixinProps.getDisableEmailNotification()- Parameters:
disableEmailNotification- Specifies whether or not to disable email notification for the member account that you invite.- Returns:
this
-
disableEmailNotification
@Stability(Stable) public CfnMemberMixinProps.Builder disableEmailNotification(IResolvable disableEmailNotification) Sets the value ofCfnMemberMixinProps.getDisableEmailNotification()- Parameters:
disableEmailNotification- Specifies whether or not to disable email notification for the member account that you invite.- Returns:
this
-
email
Sets the value ofCfnMemberMixinProps.getEmail()- Parameters:
email- The email address associated with the member account.- Returns:
this
-
memberId
Sets the value ofCfnMemberMixinProps.getMemberId()- Parameters:
memberId- The AWS account ID of the account to designate as a member.- Returns:
this
-
message
Sets the value ofCfnMemberMixinProps.getMessage()- Parameters:
message- The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.- Returns:
this
-
status
Sets the value ofCfnMemberMixinProps.getStatus()- Parameters:
status- You can use theStatusproperty to update the status of the relationship between the member account and its administrator account. Valid values areCreatedandInvitedwhen using anAWS::GuardDuty::Memberresource. If the value for this property is not provided or set toCreated, a member account is created but not invited. If the value of this property is set toInvited, a member account is created and invited.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMemberMixinProps>- Returns:
- a new instance of
CfnMemberMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-