Interface OpeningHours.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OpeningHours.Builder,,OpeningHours> SdkBuilder<OpeningHours.Builder,,OpeningHours> SdkPojo
- Enclosing class:
OpeningHours
-
Method Summary
Modifier and TypeMethodDescriptioncategories(Collection<Category> categories) Categories of results that results must belong too.categories(Consumer<Category.Builder>... categories) Categories of results that results must belong too.categories(Category... categories) Categories of results that results must belong too.components(Collection<OpeningHoursComponents> components) Components of the opening hours object.components(Consumer<OpeningHoursComponents.Builder>... components) Components of the opening hours object.components(OpeningHoursComponents... components) Components of the opening hours object.List of opening hours in the format they are displayed in.display(Collection<String> display) List of opening hours in the format they are displayed in.Boolean which indicates if the result/place is currently open.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
-
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
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
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
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
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
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 tocomponents(List<OpeningHoursComponents>).- 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:
-
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
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
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 tocategories(List<Category>).- 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:
-