Class CreateOfferDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails.Builder
-
- Enclosing class:
- CreateOfferDetails
public static class CreateOfferDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateOfferDetailsbuild()CreateOfferDetails.BuilderbuyerCompartmentId(String buyerCompartmentId)Compartment Identifier of the buyerCreateOfferDetails.BuilderbuyerInformation(BuyerInformation buyerInformation)CreateOfferDetails.Buildercopy(CreateOfferDetails model)CreateOfferDetails.BuildercustomFields(List<CustomField> customFields)A list of key value pairs specified by the sellerCreateOfferDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateOfferDetails.Builderdescription(String description)Description of the OfferCreateOfferDetails.BuilderdisplayName(String displayName)Offers IdentifierCreateOfferDetails.Builderduration(String duration)Duration the Offer will be active after its start date.CreateOfferDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.CreateOfferDetails.BuilderinternalNotes(String internalNotes)Internal notes of the OfferCreateOfferDetails.Builderpricing(Pricing pricing)CreateOfferDetails.BuilderresourceBundles(List<ResourceBundle> resourceBundles)A list of Resource Bundles associated with an Offer.CreateOfferDetails.BuildersellerCompartmentId(String sellerCompartmentId)Compartment Identifier of the sellerCreateOfferDetails.BuildersellerInformation(SellerInformation sellerInformation)CreateOfferDetails.BuildertimeAcceptBy(Date timeAcceptBy)The time the Offer must be accepted by the Buyer before the Offer becomes invalid.CreateOfferDetails.BuildertimeStartDate(Date timeStartDate)The time the Offer will become active after it has been accepted by the Buyer.
-
-
-
Method Detail
-
displayName
public CreateOfferDetails.Builder displayName(String displayName)
Offers Identifier- Parameters:
displayName- the value to set- Returns:
- this builder
-
sellerCompartmentId
public CreateOfferDetails.Builder sellerCompartmentId(String sellerCompartmentId)
Compartment Identifier of the seller- Parameters:
sellerCompartmentId- the value to set- Returns:
- this builder
-
buyerCompartmentId
public CreateOfferDetails.Builder buyerCompartmentId(String buyerCompartmentId)
Compartment Identifier of the buyer- Parameters:
buyerCompartmentId- the value to set- Returns:
- this builder
-
description
public CreateOfferDetails.Builder description(String description)
Description of the Offer- Parameters:
description- the value to set- Returns:
- this builder
-
internalNotes
public CreateOfferDetails.Builder internalNotes(String internalNotes)
Internal notes of the Offer- Parameters:
internalNotes- the value to set- Returns:
- this builder
-
timeStartDate
public CreateOfferDetails.Builder timeStartDate(Date timeStartDate)
The time the Offer will become active after it has been accepted by the Buyer.An RFC3339 formatted datetime string
- Parameters:
timeStartDate- the value to set- Returns:
- this builder
-
duration
public CreateOfferDetails.Builder duration(String duration)
Duration the Offer will be active after its start date.An ISO8601 extended formatted string.
- Parameters:
duration- the value to set- Returns:
- this builder
-
timeAcceptBy
public CreateOfferDetails.Builder timeAcceptBy(Date timeAcceptBy)
The time the Offer must be accepted by the Buyer before the Offer becomes invalid.An RFC3339 formatted datetime string
- Parameters:
timeAcceptBy- the value to set- Returns:
- this builder
-
pricing
public CreateOfferDetails.Builder pricing(Pricing pricing)
-
buyerInformation
public CreateOfferDetails.Builder buyerInformation(BuyerInformation buyerInformation)
-
sellerInformation
public CreateOfferDetails.Builder sellerInformation(SellerInformation sellerInformation)
-
resourceBundles
public CreateOfferDetails.Builder resourceBundles(List<ResourceBundle> resourceBundles)
A list of Resource Bundles associated with an Offer.- Parameters:
resourceBundles- the value to set- Returns:
- this builder
-
customFields
public CreateOfferDetails.Builder customFields(List<CustomField> customFields)
A list of key value pairs specified by the seller- Parameters:
customFields- the value to set- Returns:
- this builder
-
freeformTags
public CreateOfferDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public CreateOfferDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public CreateOfferDetails build()
-
copy
public CreateOfferDetails.Builder copy(CreateOfferDetails model)
-
-