Package com.pubmatic.sdk.openwrap.core
Class POBBid.Builder
-
- All Implemented Interfaces:
public class POBBid.BuilderBuilder class to build POBBid, this is an extensible approach can be used for enhancement This helps to make POBBid immutable
-
-
Constructor Summary
Constructors Constructor Description POBBid.Builder(POBBid bid)Constructor build with bid instance
-
Method Summary
Modifier and Type Method Description POBBidbuild()Builds the new bid with builder parameters POBBid.BuildersetCreativeType(@NonNull() String creativeType)Set Creative type for bid POBBid.BuildersetPartnerId(@NonNull() String partnerId)Set Bid partner id POBBid.BuildersetWidth(int width)Set Bid width POBBid.BuildersetHeight(int height)Set Bid height POBBid.BuildersetBidType(@NonNull() String type)Set static/dynamic Bid type POBBid.BuildersetBidStatus(int bidStatus)Set Bid status -
-
Constructor Detail
-
POBBid.Builder
POBBid.Builder(POBBid bid)
Constructor build with bid instance- Parameters:
bid- the bid instance
-
-
Method Detail
-
build
@NonNull() POBBid build()
Builds the new bid with builder parameters
- Returns:
the newly created POBBid
-
setCreativeType
@NonNull() POBBid.Builder setCreativeType(@NonNull() String creativeType)
Set Creative type for bid
- Parameters:
creativeType- the bid creative type- Returns:
updated instance of Builder
-
setPartnerId
@NonNull() POBBid.Builder setPartnerId(@NonNull() String partnerId)
Set Bid partner id
- Parameters:
partnerId- the bid partenr id- Returns:
updated instance of Builder
-
setWidth
@NonNull() POBBid.Builder setWidth(int width)
Set Bid width
- Parameters:
width- the Bid width- Returns:
updated instance of Builder
-
setHeight
@NonNull() POBBid.Builder setHeight(int height)
Set Bid height
- Parameters:
height- the Bid height- Returns:
updated instance of Builder
-
setBidType
@NonNull() POBBid.Builder setBidType(@NonNull() String type)
Set static/dynamic Bid type
- Parameters:
type- the Bid type- Returns:
updated instance of Builder
-
setBidStatus
@NonNull() POBBid.Builder setBidStatus(int bidStatus)
Set Bid status
- Parameters:
bidStatus- the Bid status- Returns:
updated instance of Builder
-
-
-
-