public static class ListTemplatesRequest.Builder extends Object implements BmcRequest.Builder<ListTemplatesRequest,Void>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListTemplatesRequest |
build()
Build the instance of ListTemplatesRequest as configured by this builder
|
ListTemplatesRequest |
buildWithoutInvocationCallback()
Build the instance of ListTemplatesRequest as configured by this builder
|
ListTemplatesRequest.Builder |
compartmentId(String compartmentId)
A filter to return only resources that exist in the compartment, identified by
OCID.
|
ListTemplatesRequest.Builder |
copy(ListTemplatesRequest o)
Copy method to populate the builder with values from the given instance.
|
ListTemplatesRequest.Builder |
displayName(String displayName)
A filter to return only resources that match the given display name exactly.
|
ListTemplatesRequest.Builder |
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
|
ListTemplatesRequest.Builder |
limit(Integer limit)
The number of items returned in a paginated
List call. |
ListTemplatesRequest.Builder |
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.
|
ListTemplatesRequest.Builder |
page(String page)
The value of the
opc-next-page response header from the preceding List
call. |
ListTemplatesRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
ListTemplatesRequest.Builder |
sortBy(ListTemplatesRequest.SortBy sortBy)
The field to use when sorting returned resources.
|
ListTemplatesRequest.Builder |
sortOrder(ListTemplatesRequest.SortOrder sortOrder)
The sort order to use when sorting returned resources.
|
ListTemplatesRequest.Builder |
templateCategoryId(String templateCategoryId)
Unique identifier for the template category.
|
ListTemplatesRequest.Builder |
templateId(String templateId)
The OCID
of the template.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
body$
public ListTemplatesRequest.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.
opcRequestId
- the value to setpublic ListTemplatesRequest.Builder compartmentId(String compartmentId)
A filter to return only resources that exist in the compartment, identified by OCID.
compartmentId
- the value to setpublic ListTemplatesRequest.Builder templateCategoryId(String templateCategoryId)
Unique identifier for the template category. Possible values are 0
(Quickstarts),
1
(Service), 2
(Architecture), and 3
(Private). Template category
labels are displayed in the Console page listing templates. Quickstarts, Service, and
Architecture templates (categories 0, 1, and 2) are available in all compartments. Each
private template (category 3) is available in the compartment where it was created.
templateCategoryId
- the value to setpublic ListTemplatesRequest.Builder templateId(String templateId)
The OCID of the template.
templateId
- the value to setpublic ListTemplatesRequest.Builder displayName(String displayName)
A filter to return only resources that match the given display name exactly. Use this
filter to list a resource by name. Requires sortBy
set to DISPLAYNAME
.
Alternatively, when you know the resource OCID, use the related Get operation.
displayName
- the value to setpublic ListTemplatesRequest.Builder sortBy(ListTemplatesRequest.SortBy sortBy)
The field to use when sorting returned resources. By default, TIMECREATED
is
ordered descending. By default, DISPLAYNAME
is ordered ascending. Note that you
can sort only on one field.
sortBy
- the value to setpublic ListTemplatesRequest.Builder sortOrder(ListTemplatesRequest.SortOrder sortOrder)
The sort order to use when sorting returned resources. Ascending (ASC
) or
descending (DESC
).
sortOrder
- the value to setpublic ListTemplatesRequest.Builder limit(Integer limit)
The number of items returned in a paginated List
call. For information about
pagination, see List
Pagination.
limit
- the value to setpublic ListTemplatesRequest.Builder page(String page)
The value of the opc-next-page
response header from the preceding List
call. For information about pagination, see List
Pagination.
page
- the value to setpublic ListTemplatesRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic ListTemplatesRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic ListTemplatesRequest.Builder copy(ListTemplatesRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<ListTemplatesRequest,Void>
o
- other request from which to copy valuespublic ListTemplatesRequest build()
Build the instance of ListTemplatesRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<ListTemplatesRequest,Void>
public ListTemplatesRequest buildWithoutInvocationCallback()
Build the instance of ListTemplatesRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2024. All rights reserved.