Class Offer.Builder
- java.lang.Object
- 
- com.oracle.bmc.marketplaceprivateoffer.model.Offer.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Offerbuild()Offer.BuilderbuyerCompartmentId(String buyerCompartmentId)OCID of the buyer’s tenancy (root compartment).Offer.BuilderbuyerInformation(BuyerInformation buyerInformation)Offer.Buildercopy(Offer model)Offer.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Offer.Builderdescription(String description)The description of the offerOffer.BuilderdisplayName(String displayName)Offer Identifier, can be renamedOffer.Builderduration(String duration)Duration the Offer will be active after its start date.Offer.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Offer.Builderid(String id)Unique identifier that is immutable on creationOffer.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.Offer.BuilderlifecycleState(Offer.LifecycleState lifecycleState)The current state of the Offer.Offer.BuilderofferStatus(Offer.OfferStatus offerStatus)A substate for lifeCycleStatus to give a more human readable version of the offerOffer.Builderpricing(Pricing pricing)Offer.BuilderpublisherSummary(PublisherSummary publisherSummary)Offer.BuilderresourceBundles(List<ResourceBundle> resourceBundles)A list of Resource Bundles associated with an Offer.Offer.BuildersellerCompartmentId(String sellerCompartmentId)OCID of the seller’s tenancy (root compartment).Offer.BuildersellerInformation(SellerInformation sellerInformation)Offer.BuildertimeAcceptBy(Date timeAcceptBy)The time the Offer must be accepted by the Buyer before the Offer becomes invalid.Offer.BuildertimeAccepted(Date timeAccepted)The time the Offer was accepted by the Buyer of the Offer.Offer.BuildertimeCreated(Date timeCreated)The time the the Offer was created.Offer.BuildertimeOfferEnd(Date timeOfferEnd)The time the accepted Offer will end.Offer.BuildertimeStartDate(Date timeStartDate)The time the Offer will become active after it has been accepted by the Buyer.Offer.BuildertimeUpdated(Date timeUpdated)The time the Offer was updated.
 
- 
- 
- 
Method Detail- 
idpublic Offer.Builder id(String id) Unique identifier that is immutable on creation- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Offer.Builder displayName(String displayName) Offer Identifier, can be renamed- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
sellerCompartmentIdpublic Offer.Builder sellerCompartmentId(String sellerCompartmentId) OCID of the seller’s tenancy (root compartment).- Parameters:
- sellerCompartmentId- the value to set
- Returns:
- this builder
 
 - 
buyerCompartmentIdpublic Offer.Builder buyerCompartmentId(String buyerCompartmentId) OCID of the buyer’s tenancy (root compartment).- Parameters:
- buyerCompartmentId- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic Offer.Builder description(String description) The description of the offer- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
timeStartDatepublic Offer.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
 
 - 
durationpublic Offer.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
 
 - 
timeCreatedpublic Offer.Builder timeCreated(Date timeCreated) The time the the Offer was created.An RFC3339 formatted datetime string - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Offer.Builder timeUpdated(Date timeUpdated) The time the Offer was updated.An RFC3339 formatted datetime string - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
timeAcceptBypublic Offer.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
 
 - 
timeAcceptedpublic Offer.Builder timeAccepted(Date timeAccepted) The time the Offer was accepted by the Buyer of the Offer.An RFC3339 formatted datetime string - Parameters:
- timeAccepted- the value to set
- Returns:
- this builder
 
 - 
timeOfferEndpublic Offer.Builder timeOfferEnd(Date timeOfferEnd) The time the accepted Offer will end.An RFC3339 formatted datetime string - Parameters:
- timeOfferEnd- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Offer.Builder lifecycleState(Offer.LifecycleState lifecycleState) The current state of the Offer.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic Offer.Builder lifecycleDetails(String lifecycleDetails) A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state. - Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
offerStatuspublic Offer.Builder offerStatus(Offer.OfferStatus offerStatus) A substate for lifeCycleStatus to give a more human readable version of the offer- Parameters:
- offerStatus- the value to set
- Returns:
- this builder
 
 - 
publisherSummarypublic Offer.Builder publisherSummary(PublisherSummary publisherSummary) 
 - 
pricingpublic Offer.Builder pricing(Pricing pricing) 
 - 
buyerInformationpublic Offer.Builder buyerInformation(BuyerInformation buyerInformation) 
 - 
sellerInformationpublic Offer.Builder sellerInformation(SellerInformation sellerInformation) 
 - 
resourceBundlespublic Offer.Builder resourceBundles(List<ResourceBundle> resourceBundles) A list of Resource Bundles associated with an Offer.- Parameters:
- resourceBundles- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic Offer.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
 
 - 
definedTagspublic Offer.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
 
 - 
buildpublic Offer build() 
 - 
copypublic Offer.Builder copy(Offer model) 
 
- 
 
-