Class CfnMemberProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnMemberProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMemberProps>
- Enclosing interface:
CfnMemberProps
@Stability(Stable)
public static final class CfnMemberProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMemberProps>
A builder for
CfnMemberProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.detectorId
(String detectorId) Sets the value ofCfnMemberProps.getDetectorId()
disableEmailNotification
(Boolean disableEmailNotification) Sets the value ofCfnMemberProps.getDisableEmailNotification()
disableEmailNotification
(IResolvable disableEmailNotification) Sets the value ofCfnMemberProps.getDisableEmailNotification()
Sets the value ofCfnMemberProps.getEmail()
Sets the value ofCfnMemberProps.getMemberId()
Sets the value ofCfnMemberProps.getMessage()
Sets the value ofCfnMemberProps.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
email
Sets the value ofCfnMemberProps.getEmail()
- Parameters:
email
- The email address associated with the member account. This parameter is required.- Returns:
this
-
detectorId
Sets the value ofCfnMemberProps.getDetectorId()
- Parameters:
detectorId
- The ID of the detector associated with the GuardDuty service to add the member to.- Returns:
this
-
disableEmailNotification
@Stability(Stable) public CfnMemberProps.Builder disableEmailNotification(Boolean disableEmailNotification) Sets the value ofCfnMemberProps.getDisableEmailNotification()
- Parameters:
disableEmailNotification
- Specifies whether or not to disable email notification for the member account that you invite.- Returns:
this
-
disableEmailNotification
@Stability(Stable) public CfnMemberProps.Builder disableEmailNotification(IResolvable disableEmailNotification) Sets the value ofCfnMemberProps.getDisableEmailNotification()
- Parameters:
disableEmailNotification
- Specifies whether or not to disable email notification for the member account that you invite.- Returns:
this
-
memberId
Sets the value ofCfnMemberProps.getMemberId()
- Parameters:
memberId
- The AWS account ID of the account to designate as a member.- Returns:
this
-
message
Sets the value ofCfnMemberProps.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 ofCfnMemberProps.getStatus()
- Parameters:
status
- You can use theStatus
property to update the status of the relationship between the member account and its administrator account. Valid values areCreated
andInvited
when using anAWS::GuardDuty::Member
resource. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnMemberProps>
- Returns:
- a new instance of
CfnMemberProps
- Throws:
NullPointerException
- if any required attribute was not provided
-