Class ListListingsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.marketplace.requests.ListListingsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListListingsRequest,Void>
- Enclosing class:
- ListListingsRequest
public static class ListListingsRequest.Builder extends Object implements BmcRequest.Builder<ListListingsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListListingsRequest
build()
Build the instance of ListListingsRequest as configured by this builderListListingsRequest
buildWithoutInvocationCallback()
Build the instance of ListListingsRequest as configured by this builderListListingsRequest.Builder
category(String singularValue)
Singular setter.ListListingsRequest.Builder
category(List<String> category)
Name of the product category or categories.ListListingsRequest.Builder
compartmentId(String compartmentId)
The unique identifier for the compartment.ListListingsRequest.Builder
copy(ListListingsRequest o)
Copy method to populate the builder with values from the given instance.ListListingsRequest.Builder
imageId(String imageId)
The image identifier of the listing.ListListingsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListListingsRequest.Builder
isFeatured(Boolean isFeatured)
Indicates whether to show only featured listings.ListListingsRequest.Builder
limit(Integer limit)
How many records to return.ListListingsRequest.Builder
listingId(String listingId)
The unique identifier for the listing.ListListingsRequest.Builder
listingTypes(ListingType singularValue)
Singular setter.ListListingsRequest.Builder
listingTypes(List<ListingType> listingTypes)
The type of the listing.ListListingsRequest.Builder
name(String singularValue)
Singular setter.ListListingsRequest.Builder
name(List<String> name)
The name of the listing.ListListingsRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.ListListingsRequest.Builder
operatingSystems(String singularValue)
Singular setter.ListListingsRequest.Builder
operatingSystems(List<String> operatingSystems)
The operating system of the listing.ListListingsRequest.Builder
packageType(String packageType)
A filter to return only packages that match the given package type exactly.ListListingsRequest.Builder
page(String page)
The value of the opc-next-page response header from the previous “List” call.ListListingsRequest.Builder
pricing(PricingTypeEnum singularValue)
Singular setter.ListListingsRequest.Builder
pricing(List<PricingTypeEnum> pricing)
Name of the pricing type.ListListingsRequest.Builder
publisherId(String publisherId)
Limit results to just this publisher.ListListingsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListListingsRequest.Builder
sortBy(ListListingsRequest.SortBy sortBy)
The field to use to sort listed results.ListListingsRequest.Builder
sortOrder(ListListingsRequest.SortOrder sortOrder)
The sort order to use, either ASC or DESC.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builder
body$
-
-
-
-
Method Detail
-
name
public ListListingsRequest.Builder name(List<String> name)
The name of the listing.- Parameters:
name
- the value to set- Returns:
- this builder instance
-
name
public ListListingsRequest.Builder name(String singularValue)
Singular setter.The name of the listing.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
listingId
public ListListingsRequest.Builder listingId(String listingId)
The unique identifier for the listing.- Parameters:
listingId
- the value to set- Returns:
- this builder instance
-
imageId
public ListListingsRequest.Builder imageId(String imageId)
The image identifier of the listing.- Parameters:
imageId
- the value to set- Returns:
- this builder instance
-
publisherId
public ListListingsRequest.Builder publisherId(String publisherId)
Limit results to just this publisher.- Parameters:
publisherId
- the value to set- Returns:
- this builder instance
-
packageType
public ListListingsRequest.Builder packageType(String packageType)
A filter to return only packages that match the given package type exactly.- Parameters:
packageType
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListListingsRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
limit
public ListListingsRequest.Builder limit(Integer limit)
How many records to return.Specify a value greater than zero and less than or equal to 1000. The default is 30.
- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListListingsRequest.Builder page(String page)
The value of the opc-next-page response header from the previous “List” call.- Parameters:
page
- the value to set- Returns:
- this builder instance
-
sortBy
public ListListingsRequest.Builder sortBy(ListListingsRequest.SortBy sortBy)
The field to use to sort listed results.You can only specify one field to sort by. TIMERELEASED displays results in descending order by default. You can change your preference by specifying a different sort order.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListListingsRequest.Builder sortOrder(ListListingsRequest.SortOrder sortOrder)
The sort order to use, either ASC or DESC.- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
category
public ListListingsRequest.Builder category(List<String> category)
Name of the product category or categories.If you specify multiple categories, then Marketplace returns any listing with one or more matching categories.
- Parameters:
category
- the value to set- Returns:
- this builder instance
-
category
public ListListingsRequest.Builder category(String singularValue)
Singular setter.Name of the product category or categories. If you specify multiple categories, then Marketplace returns any listing with one or more matching categories.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
pricing
public ListListingsRequest.Builder pricing(List<PricingTypeEnum> pricing)
Name of the pricing type.If multiple pricing types are provided, then any listing with one or more matching pricing models will be returned.
- Parameters:
pricing
- the value to set- Returns:
- this builder instance
-
pricing
public ListListingsRequest.Builder pricing(PricingTypeEnum singularValue)
Singular setter.Name of the pricing type. If multiple pricing types are provided, then any listing with one or more matching pricing models will be returned.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
isFeatured
public ListListingsRequest.Builder isFeatured(Boolean isFeatured)
Indicates whether to show only featured listings.If this is set to false or is omitted, then all listings will be returned.
- Parameters:
isFeatured
- the value to set- Returns:
- this builder instance
-
listingTypes
public ListListingsRequest.Builder listingTypes(List<ListingType> listingTypes)
The type of the listing.- Parameters:
listingTypes
- the value to set- Returns:
- this builder instance
-
listingTypes
public ListListingsRequest.Builder listingTypes(ListingType singularValue)
Singular setter.The type of the listing.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
operatingSystems
public ListListingsRequest.Builder operatingSystems(List<String> operatingSystems)
The operating system of the listing.- Parameters:
operatingSystems
- the value to set- Returns:
- this builder instance
-
operatingSystems
public ListListingsRequest.Builder operatingSystems(String singularValue)
Singular setter.The operating system of the listing.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
compartmentId
public ListListingsRequest.Builder compartmentId(String compartmentId)
The unique identifier for the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListListingsRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public ListListingsRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public ListListingsRequest.Builder copy(ListListingsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListListingsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListListingsRequest build()
Build the instance of ListListingsRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<ListListingsRequest,Void>
- Returns:
- instance of ListListingsRequest
-
buildWithoutInvocationCallback
public ListListingsRequest buildWithoutInvocationCallback()
Build the instance of ListListingsRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of ListListingsRequest
-
-