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 Details

    • Builder

      public Builder()
  • Method Details

    • detectorId

      @Stability(Stable) public CfnMemberProps.Builder detectorId(String detectorId)
      Parameters:
      detectorId - The ID of the detector associated with the GuardDuty service to add the member to. This parameter is required.
      Returns:
      this
    • email

      @Stability(Stable) public CfnMemberProps.Builder email(String email)
      Sets the value of CfnMemberProps.getEmail()
      Parameters:
      email - The email address associated with the member account. This parameter is required.
      Returns:
      this
    • memberId

      @Stability(Stable) public CfnMemberProps.Builder memberId(String memberId)
      Parameters:
      memberId - The AWS account ID of the account to designate as a member. This parameter is required.
      Returns:
      this
    • disableEmailNotification

      @Stability(Stable) public CfnMemberProps.Builder disableEmailNotification(Boolean disableEmailNotification)
      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)
      Parameters:
      disableEmailNotification - Specifies whether or not to disable email notification for the member account that you invite.
      Returns:
      this
    • message

      @Stability(Stable) public CfnMemberProps.Builder message(String message)
      Sets the value of CfnMemberProps.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

      @Stability(Stable) public CfnMemberProps.Builder status(String status)
      Sets the value of CfnMemberProps.getStatus()
      Parameters:
      status - You can use the Status property to update the status of the relationship between the member account and its administrator account. Valid values are Created and Invited when using an AWS::GuardDuty::Member resource. If the value for this property is not provided or set to Created , a member account is created but not invited. If the value of this property is set to Invited , a member account is created and invited.
      Returns:
      this
    • build

      @Stability(Stable) public CfnMemberProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMemberProps>
      Returns:
      a new instance of CfnMemberProps
      Throws:
      NullPointerException - if any required attribute was not provided