Interface WhatsAppCallHours.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WhatsAppCallHours.Builder,,WhatsAppCallHours> SdkBuilder<WhatsAppCallHours.Builder,,WhatsAppCallHours> SdkPojo
- Enclosing class:
WhatsAppCallHours
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether call hours are enforced.holidaySchedule(Collection<WhatsAppHolidayScheduleEntry> holidaySchedule) Date-specific overrides to the weekly operating hours, such as holidays.holidaySchedule(Consumer<WhatsAppHolidayScheduleEntry.Builder>... holidaySchedule) Date-specific overrides to the weekly operating hours, such as holidays.holidaySchedule(WhatsAppHolidayScheduleEntry... holidaySchedule) Date-specific overrides to the weekly operating hours, such as holidays.The IANA time zone in which the operating hours are interpreted, such asAmerica/New_York.weeklyOperatingHours(Collection<WhatsAppWeeklyOperatingHoursEntry> weeklyOperatingHours) The weekly schedule of hours during which the business accepts calls.weeklyOperatingHours(Consumer<WhatsAppWeeklyOperatingHoursEntry.Builder>... weeklyOperatingHours) The weekly schedule of hours during which the business accepts calls.weeklyOperatingHours(WhatsAppWeeklyOperatingHoursEntry... weeklyOperatingHours) The weekly schedule of hours during which the business accepts calls.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
enabled
Specifies whether call hours are enforced. When disabled, the business accepts calls at any time.
- Parameters:
enabled- Specifies whether call hours are enforced. When disabled, the business accepts calls at any time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timezone
The IANA time zone in which the operating hours are interpreted, such as
America/New_York.- Parameters:
timezone- The IANA time zone in which the operating hours are interpreted, such asAmerica/New_York.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weeklyOperatingHours
WhatsAppCallHours.Builder weeklyOperatingHours(Collection<WhatsAppWeeklyOperatingHoursEntry> weeklyOperatingHours) The weekly schedule of hours during which the business accepts calls.
- Parameters:
weeklyOperatingHours- The weekly schedule of hours during which the business accepts calls.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weeklyOperatingHours
WhatsAppCallHours.Builder weeklyOperatingHours(WhatsAppWeeklyOperatingHoursEntry... weeklyOperatingHours) The weekly schedule of hours during which the business accepts calls.
- Parameters:
weeklyOperatingHours- The weekly schedule of hours during which the business accepts calls.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weeklyOperatingHours
WhatsAppCallHours.Builder weeklyOperatingHours(Consumer<WhatsAppWeeklyOperatingHoursEntry.Builder>... weeklyOperatingHours) The weekly schedule of hours during which the business accepts calls.
This is a convenience method that creates an instance of theWhatsAppWeeklyOperatingHoursEntry.Builderavoiding the need to create one manually viaWhatsAppWeeklyOperatingHoursEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toweeklyOperatingHours(List<WhatsAppWeeklyOperatingHoursEntry>).- Parameters:
weeklyOperatingHours- a consumer that will call methods onWhatsAppWeeklyOperatingHoursEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
holidaySchedule
Date-specific overrides to the weekly operating hours, such as holidays.
- Parameters:
holidaySchedule- Date-specific overrides to the weekly operating hours, such as holidays.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
holidaySchedule
Date-specific overrides to the weekly operating hours, such as holidays.
- Parameters:
holidaySchedule- Date-specific overrides to the weekly operating hours, such as holidays.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
holidaySchedule
WhatsAppCallHours.Builder holidaySchedule(Consumer<WhatsAppHolidayScheduleEntry.Builder>... holidaySchedule) Date-specific overrides to the weekly operating hours, such as holidays.
This is a convenience method that creates an instance of theWhatsAppHolidayScheduleEntry.Builderavoiding the need to create one manually viaWhatsAppHolidayScheduleEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toholidaySchedule(List<WhatsAppHolidayScheduleEntry>).- Parameters:
holidaySchedule- a consumer that will call methods onWhatsAppHolidayScheduleEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-