Interface OpeningHours.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OpeningHours.Builder,OpeningHours>,SdkBuilder<OpeningHours.Builder,OpeningHours>,SdkPojo
- Enclosing class:
- OpeningHours
public static interface OpeningHours.Builder extends SdkPojo, CopyableBuilder<OpeningHours.Builder,OpeningHours>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OpeningHours.Buildercategories(Collection<Category> categories)Categories of results that results must belong too.OpeningHours.Buildercategories(Consumer<Category.Builder>... categories)Categories of results that results must belong too.OpeningHours.Buildercategories(Category... categories)Categories of results that results must belong too.OpeningHours.Buildercomponents(Collection<OpeningHoursComponents> components)Components of the opening hours object.OpeningHours.Buildercomponents(Consumer<OpeningHoursComponents.Builder>... components)Components of the opening hours object.OpeningHours.Buildercomponents(OpeningHoursComponents... components)Components of the opening hours object.OpeningHours.Builderdisplay(String... display)List of opening hours in the format they are displayed in.OpeningHours.Builderdisplay(Collection<String> display)List of opening hours in the format they are displayed in.OpeningHours.BuilderopenNow(Boolean openNow)Boolean which indicates if the result/place is currently open.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
display
OpeningHours.Builder display(Collection<String> display)
List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.
- Parameters:
display- List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
display
OpeningHours.Builder display(String... display)
List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.
- Parameters:
display- List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
openNow
OpeningHours.Builder openNow(Boolean openNow)
Boolean which indicates if the result/place is currently open.
- Parameters:
openNow- Boolean which indicates if the result/place is currently open.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
components
OpeningHours.Builder components(Collection<OpeningHoursComponents> components)
Components of the opening hours object.
- Parameters:
components- Components of the opening hours object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
components
OpeningHours.Builder components(OpeningHoursComponents... components)
Components of the opening hours object.
- Parameters:
components- Components of the opening hours object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
components
OpeningHours.Builder components(Consumer<OpeningHoursComponents.Builder>... components)
Components of the opening hours object.
This is a convenience method that creates an instance of theOpeningHoursComponents.Builderavoiding the need to create one manually viaOpeningHoursComponents.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#components(List.) - Parameters:
components- a consumer that will call methods onOpeningHoursComponents.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#components(java.util.Collection)
-
categories
OpeningHours.Builder categories(Collection<Category> categories)
Categories of results that results must belong too.
- Parameters:
categories- Categories of results that results must belong too.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
OpeningHours.Builder categories(Category... categories)
Categories of results that results must belong too.
- Parameters:
categories- Categories of results that results must belong too.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
OpeningHours.Builder categories(Consumer<Category.Builder>... categories)
Categories of results that results must belong too.
This is a convenience method that creates an instance of theCategory.Builderavoiding the need to create one manually viaCategory.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#categories(List.) - Parameters:
categories- a consumer that will call methods onCategory.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#categories(java.util.Collection)
-
-