Class Listing.Builder
- java.lang.Object
-
- com.oracle.bmc.marketplacepublisher.model.Listing.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Listing
build()
Listing.Builder
compartmentId(String compartmentId)
The unique identifier for the compartment.Listing.Builder
copy(Listing model)
Listing.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Listing.Builder
extendedMetadata(Map<String,String> extendedMetadata)
Additional metadata key/value pairs for the listing summary.Listing.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Listing.Builder
id(String id)
Unique OCID identifier for the listing.Listing.Builder
lifecycleState(Listing.LifecycleState lifecycleState)
The current state of the Listing.Listing.Builder
listingType(ListingType listingType)
The listing type for the listing.Listing.Builder
name(String name)
Name for the listing.Listing.Builder
packageType(PackageType packageType)
The package type for the listing.Listing.Builder
publisherId(String publisherId)
The unique identifier for the publisher.Listing.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Listing.Builder
timeCreated(Date timeCreated)
The date and time the listing was created, in the format defined by RFC3339.Listing.Builder
timeUpdated(Date timeUpdated)
The date and time the listing was updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public Listing.Builder id(String id)
Unique OCID identifier for the listing.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public Listing.Builder compartmentId(String compartmentId)
The unique identifier for the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
publisherId
public Listing.Builder publisherId(String publisherId)
The unique identifier for the publisher.- Parameters:
publisherId
- the value to set- Returns:
- this builder
-
listingType
public Listing.Builder listingType(ListingType listingType)
The listing type for the listing.- Parameters:
listingType
- the value to set- Returns:
- this builder
-
name
public Listing.Builder name(String name)
Name for the listing.- Parameters:
name
- the value to set- Returns:
- this builder
-
packageType
public Listing.Builder packageType(PackageType packageType)
The package type for the listing.- Parameters:
packageType
- the value to set- Returns:
- this builder
-
extendedMetadata
public Listing.Builder extendedMetadata(Map<String,String> extendedMetadata)
Additional metadata key/value pairs for the listing summary.For example:
{"listingRevisionStatus": "Published","listingRevision": "1" }
- Parameters:
extendedMetadata
- the value to set- Returns:
- this builder
-
lifecycleState
public Listing.Builder lifecycleState(Listing.LifecycleState lifecycleState)
The current state of the Listing.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public Listing.Builder timeCreated(Date timeCreated)
The date and time the listing was created, in the format defined by RFC3339.Example: 2023-03-27T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Listing.Builder timeUpdated(Date timeUpdated)
The date and time the listing was updated, in the format defined by RFC3339.Example: 2023-03-27T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public Listing.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 Listing.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
-
systemTags
public Listing.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public Listing build()
-
copy
public Listing.Builder copy(Listing model)
-
-