AvailabilityTimeWindow.Builder


public final class AvailabilityTimeWindow.Builder


Builder class for AvailabilityTimeWindow.

Summary

Public constructors

Public methods

AvailabilityTimeWindow
AvailabilityTimeWindow.Builder

This method is deprecated.

Use setLocalizedEndTimestamp instead.

AvailabilityTimeWindow.Builder

Sets the localized end timestamp for the availability time window.

AvailabilityTimeWindow.Builder

Sets the localized start timestamp for the availability time window.

AvailabilityTimeWindow.Builder
@CanIgnoreReturnValue
setStartTimestampMillis(long startTimestampMillis)

This method is deprecated.

Use setLocalizedStartTimestamp instead.

Public constructors

Builder

public Builder()

Public methods

build

public AvailabilityTimeWindow build()

setEndTimestampMillis

@CanIgnoreReturnValue
public AvailabilityTimeWindow.Builder setEndTimestampMillis(long endTimestampMillis)

Sets the end timestamp for the availability time window in epoch milliseconds.

Required.

setLocalizedEndTimestamp

@CanIgnoreReturnValue
public AvailabilityTimeWindow.Builder setLocalizedEndTimestamp(LocalizedTimestamp localizedEndTimestamp)

Sets the localized end timestamp for the availability time window.

Required.

setLocalizedStartTimestamp

@CanIgnoreReturnValue
public AvailabilityTimeWindow.Builder setLocalizedStartTimestamp(LocalizedTimestamp localizedStartTimestamp)

Sets the localized start timestamp for the availability time window.

Required.

setStartTimestampMillis

@CanIgnoreReturnValue
public AvailabilityTimeWindow.Builder setStartTimestampMillis(long startTimestampMillis)

Sets the start timestamp for the availability time window in epoch milliseconds.

Required.