Class CfnContactProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssmcontacts.CfnContactProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContactProps>
- Enclosing interface:
- CfnContactProps
@Stability(Stable)
public static final class CfnContactProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContactProps>
A builder for
CfnContactProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnContactProps.getAlias()
build()
Builds the configured instance.displayName
(String displayName) Sets the value ofCfnContactProps.getDisplayName()
Sets the value ofCfnContactProps.getPlan()
plan
(IResolvable plan) Sets the value ofCfnContactProps.getPlan()
Sets the value ofCfnContactProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnContactProps.getAlias()
- Parameters:
alias
- The unique and identifiable alias of the contact or escalation plan. This parameter is required.- Returns:
this
-
displayName
Sets the value ofCfnContactProps.getDisplayName()
- Parameters:
displayName
- The full name of the contact or escalation plan. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnContactProps.getType()
- Parameters:
type
- Refers to the type of contact:. This parameter is required.PERSONAL
: A single, individual contact.ESCALATION
: An escalation plan.ONCALL_SCHEDULE
: An on-call schedule.
- Returns:
this
-
plan
Sets the value ofCfnContactProps.getPlan()
- Parameters:
plan
- A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.- Returns:
this
-
plan
Sets the value ofCfnContactProps.getPlan()
- Parameters:
plan
- A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContactProps>
- Returns:
- a new instance of
CfnContactProps
- Throws:
NullPointerException
- if any required attribute was not provided
-