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