Class Rating.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.catalog_management.v1.model.Rating.Builder
-
- Enclosing class:
- Rating
public static class Rating.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ratingbuild()Builds a Rating.Rating.BuilderfourStarCount(long fourStarCount)Set the fourStarCount.Rating.BuilderoneStarCount(long oneStarCount)Set the oneStarCount.Rating.BuilderthreeStarCount(long threeStarCount)Set the threeStarCount.Rating.BuildertwoStarCount(long twoStarCount)Set the twoStarCount.
-
-
-
Method Detail
-
build
public Rating build()
Builds a Rating.- Returns:
- the new Rating instance
-
oneStarCount
public Rating.Builder oneStarCount(long oneStarCount)
Set the oneStarCount.- Parameters:
oneStarCount- the oneStarCount- Returns:
- the Rating builder
-
twoStarCount
public Rating.Builder twoStarCount(long twoStarCount)
Set the twoStarCount.- Parameters:
twoStarCount- the twoStarCount- Returns:
- the Rating builder
-
threeStarCount
public Rating.Builder threeStarCount(long threeStarCount)
Set the threeStarCount.- Parameters:
threeStarCount- the threeStarCount- Returns:
- the Rating builder
-
fourStarCount
public Rating.Builder fourStarCount(long fourStarCount)
Set the fourStarCount.- Parameters:
fourStarCount- the fourStarCount- Returns:
- the Rating builder
-
-