Class CfnProactiveEngagement.EmergencyContactProperty.Builder
java.lang.Object
software.amazon.awscdk.services.shield.CfnProactiveEngagement.EmergencyContactProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProactiveEngagement.EmergencyContactProperty>
- Enclosing interface:
- CfnProactiveEngagement.EmergencyContactProperty
@Stability(Stable)
public static final class CfnProactiveEngagement.EmergencyContactProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProactiveEngagement.EmergencyContactProperty>
A builder for
CfnProactiveEngagement.EmergencyContactProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contactNotes
(String contactNotes) Sets the value ofCfnProactiveEngagement.EmergencyContactProperty.getContactNotes()
emailAddress
(String emailAddress) Sets the value ofCfnProactiveEngagement.EmergencyContactProperty.getEmailAddress()
phoneNumber
(String phoneNumber) Sets the value ofCfnProactiveEngagement.EmergencyContactProperty.getPhoneNumber()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emailAddress
@Stability(Stable) public CfnProactiveEngagement.EmergencyContactProperty.Builder emailAddress(String emailAddress) Sets the value ofCfnProactiveEngagement.EmergencyContactProperty.getEmailAddress()
- Parameters:
emailAddress
- The email address for the contact. This parameter is required.- Returns:
this
-
contactNotes
@Stability(Stable) public CfnProactiveEngagement.EmergencyContactProperty.Builder contactNotes(String contactNotes) Sets the value ofCfnProactiveEngagement.EmergencyContactProperty.getContactNotes()
- Parameters:
contactNotes
- Additional notes regarding the contact.- Returns:
this
-
phoneNumber
@Stability(Stable) public CfnProactiveEngagement.EmergencyContactProperty.Builder phoneNumber(String phoneNumber) Sets the value ofCfnProactiveEngagement.EmergencyContactProperty.getPhoneNumber()
- Parameters:
phoneNumber
- The phone number for the contact.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProactiveEngagement.EmergencyContactProperty>
- Returns:
- a new instance of
CfnProactiveEngagement.EmergencyContactProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-