Class Offer.Builder
- java.lang.Object
-
- com.oracle.bmc.marketplaceprivateoffer.model.Offer.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Offer
build()
Offer.Builder
buyerCompartmentId(String buyerCompartmentId)
OCID of the buyer’s tenancy (root compartment).Offer.Builder
buyerInformation(BuyerInformation buyerInformation)
Offer.Builder
copy(Offer model)
Offer.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Offer.Builder
description(String description)
The description of the offerOffer.Builder
displayName(String displayName)
Offer Identifier, can be renamedOffer.Builder
duration(String duration)
Duration the Offer will be active after its start date.Offer.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Offer.Builder
id(String id)
Unique identifier that is immutable on creationOffer.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.Offer.Builder
lifecycleState(Offer.LifecycleState lifecycleState)
The current state of the Offer.Offer.Builder
offerStatus(Offer.OfferStatus offerStatus)
A substate for lifeCycleStatus to give a more human readable version of the offerOffer.Builder
pricing(Pricing pricing)
Offer.Builder
publisherSummary(PublisherSummary publisherSummary)
Offer.Builder
resourceBundles(List<ResourceBundle> resourceBundles)
A list of Resource Bundles associated with an Offer.Offer.Builder
sellerCompartmentId(String sellerCompartmentId)
OCID of the seller’s tenancy (root compartment).Offer.Builder
sellerInformation(SellerInformation sellerInformation)
Offer.Builder
timeAcceptBy(Date timeAcceptBy)
The time the Offer must be accepted by the Buyer before the Offer becomes invalid.Offer.Builder
timeAccepted(Date timeAccepted)
The time the Offer was accepted by the Buyer of the Offer.Offer.Builder
timeCreated(Date timeCreated)
The time the the Offer was created.Offer.Builder
timeOfferEnd(Date timeOfferEnd)
The time the accepted Offer will end.Offer.Builder
timeStartDate(Date timeStartDate)
The time the Offer will become active after it has been accepted by the Buyer.Offer.Builder
timeUpdated(Date timeUpdated)
The time the Offer was updated.
-
-
-
Method Detail
-
id
public Offer.Builder id(String id)
Unique identifier that is immutable on creation- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public Offer.Builder displayName(String displayName)
Offer Identifier, can be renamed- Parameters:
displayName
- the value to set- Returns:
- this builder
-
sellerCompartmentId
public Offer.Builder sellerCompartmentId(String sellerCompartmentId)
OCID of the seller’s tenancy (root compartment).- Parameters:
sellerCompartmentId
- the value to set- Returns:
- this builder
-
buyerCompartmentId
public Offer.Builder buyerCompartmentId(String buyerCompartmentId)
OCID of the buyer’s tenancy (root compartment).- Parameters:
buyerCompartmentId
- the value to set- Returns:
- this builder
-
description
public Offer.Builder description(String description)
The description of the offer- Parameters:
description
- the value to set- Returns:
- this builder
-
timeStartDate
public 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
-
duration
public 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
-
timeCreated
public 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
-
timeUpdated
public 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
-
timeAcceptBy
public 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
-
timeAccepted
public 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
-
timeOfferEnd
public 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
-
lifecycleState
public Offer.Builder lifecycleState(Offer.LifecycleState lifecycleState)
The current state of the Offer.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public 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
-
offerStatus
public 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
-
publisherSummary
public Offer.Builder publisherSummary(PublisherSummary publisherSummary)
-
pricing
public Offer.Builder pricing(Pricing pricing)
-
buyerInformation
public Offer.Builder buyerInformation(BuyerInformation buyerInformation)
-
sellerInformation
public Offer.Builder sellerInformation(SellerInformation sellerInformation)
-
resourceBundles
public Offer.Builder resourceBundles(List<ResourceBundle> resourceBundles)
A list of Resource Bundles associated with an Offer.- Parameters:
resourceBundles
- the value to set- Returns:
- this builder
-
freeformTags
public 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
-
definedTags
public 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
-
build
public Offer build()
-
copy
public Offer.Builder copy(Offer model)
-
-