Class CfnContactMethod.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnContactMethod.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContactMethod>
- Enclosing class:
CfnContactMethod
@Stability(Stable)
public static final class CfnContactMethod.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContactMethod>
A fluent builder for
CfnContactMethod.-
Method Summary
Modifier and TypeMethodDescriptionbuild()contactEndpoint(String contactEndpoint) The destination of the contact method, such as an email address or a mobile phone number.static CfnContactMethod.BuilderThe protocol of the contact method, such as Email or SMS (text messaging).
-
Method Details
-
create
@Stability(Stable) public static CfnContactMethod.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnContactMethod.Builder.
-
contactEndpoint
The destination of the contact method, such as an email address or a mobile phone number.- Parameters:
contactEndpoint- The destination of the contact method, such as an email address or a mobile phone number. This parameter is required.- Returns:
this- See Also:
-
protocol
The protocol of the contact method, such as Email or SMS (text messaging).- Parameters:
protocol- The protocol of the contact method, such as Email or SMS (text messaging). This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContactMethod>- Returns:
- a newly built instance of
CfnContactMethod.
-