Class CfnRotationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssmcontacts.CfnRotationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRotationProps>
- Enclosing interface:
CfnRotationProps
@Stability(Stable)
public static final class CfnRotationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRotationProps>
A builder for
CfnRotationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contactIds
(List<String> contactIds) Sets the value ofCfnRotationProps.getContactIds()
Sets the value ofCfnRotationProps.getName()
recurrence
(IResolvable recurrence) Sets the value ofCfnRotationProps.getRecurrence()
recurrence
(CfnRotation.RecurrenceSettingsProperty recurrence) Sets the value ofCfnRotationProps.getRecurrence()
Sets the value ofCfnRotationProps.getStartTime()
Sets the value ofCfnRotationProps.getTags()
timeZoneId
(String timeZoneId) Sets the value ofCfnRotationProps.getTimeZoneId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contactIds
Sets the value ofCfnRotationProps.getContactIds()
- Parameters:
contactIds
- The Amazon Resource Names (ARNs) of the contacts to add to the rotation. This parameter is required.Only the
PERSONAL
contact type is supported. The contact typesESCALATION
andONCALL_SCHEDULE
are not supported for this operation.The order in which you list the contacts is their shift order in the rotation schedule.
- Returns:
this
-
name
Sets the value ofCfnRotationProps.getName()
- Parameters:
name
- The name for the rotation. This parameter is required.- Returns:
this
-
recurrence
Sets the value ofCfnRotationProps.getRecurrence()
- Parameters:
recurrence
- Information about the rule that specifies when shift team members rotate. This parameter is required.- Returns:
this
-
recurrence
@Stability(Stable) public CfnRotationProps.Builder recurrence(CfnRotation.RecurrenceSettingsProperty recurrence) Sets the value ofCfnRotationProps.getRecurrence()
- Parameters:
recurrence
- Information about the rule that specifies when shift team members rotate. This parameter is required.- Returns:
this
-
startTime
Sets the value ofCfnRotationProps.getStartTime()
- Parameters:
startTime
- The date and time the rotation goes into effect. This parameter is required.- Returns:
this
-
timeZoneId
Sets the value ofCfnRotationProps.getTimeZoneId()
- Parameters:
timeZoneId
- The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. This parameter is required. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA website.Designators for time zones that don’t support Daylight Savings Time rules, such as Pacific Standard Time (PST), are not supported.
- Returns:
this
-
tags
Sets the value ofCfnRotationProps.getTags()
- Parameters:
tags
- Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see Tagging Incident Manager resources in the Incident Manager User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRotationProps>
- Returns:
- a new instance of
CfnRotationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-