Class CfnContactMethodProps.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnContactMethodProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContactMethodProps>
- Enclosing interface:
CfnContactMethodProps
@Stability(Stable)
public static final class CfnContactMethodProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContactMethodProps>
A builder for
CfnContactMethodProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contactEndpoint(String contactEndpoint) Sets the value ofCfnContactMethodProps.getContactEndpoint()Sets the value ofCfnContactMethodProps.getProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contactEndpoint
Sets the value ofCfnContactMethodProps.getContactEndpoint()- Parameters:
contactEndpoint- The destination of the contact method, such as an email address or a mobile phone number. This parameter is required.- Returns:
this
-
protocol
Sets the value ofCfnContactMethodProps.getProtocol()- Parameters:
protocol- The protocol of the contact method, such as Email or SMS (text messaging). This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContactMethodProps>- Returns:
- a new instance of
CfnContactMethodProps - Throws:
NullPointerException- if any required attribute was not provided
-