Class ListAnnouncementSubscriptionsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.announcementsservice.requests.ListAnnouncementSubscriptionsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListAnnouncementSubscriptionsRequest,Void>
- Enclosing class:
- ListAnnouncementSubscriptionsRequest
public static class ListAnnouncementSubscriptionsRequest.Builder extends Object implements BmcRequest.Builder<ListAnnouncementSubscriptionsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListAnnouncementSubscriptionsRequest
build()
Build the instance of ListAnnouncementSubscriptionsRequest as configured by this builderListAnnouncementSubscriptionsRequest
buildWithoutInvocationCallback()
Build the instance of ListAnnouncementSubscriptionsRequest as configured by this builderListAnnouncementSubscriptionsRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment.ListAnnouncementSubscriptionsRequest.Builder
copy(ListAnnouncementSubscriptionsRequest o)
Copy method to populate the builder with values from the given instance.ListAnnouncementSubscriptionsRequest.Builder
displayName(String displayName)
A filter to return only resources that match the entire display name given.ListAnnouncementSubscriptionsRequest.Builder
id(String id)
The OCID of the announcement subscription.ListAnnouncementSubscriptionsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListAnnouncementSubscriptionsRequest.Builder
lifecycleState(AnnouncementSubscription.LifecycleState lifecycleState)
A filter to return only announcement subscriptions that match the given lifecycle state.ListAnnouncementSubscriptionsRequest.Builder
limit(Integer limit)
The maximum number of items to return in a paginated “List” call.ListAnnouncementSubscriptionsRequest.Builder
opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.ListAnnouncementSubscriptionsRequest.Builder
page(String page)
The value of the opc-next-page response header from the previous “List” call.ListAnnouncementSubscriptionsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListAnnouncementSubscriptionsRequest.Builder
sortBy(ListAnnouncementSubscriptionsRequest.SortBy sortBy)
The criteria to sort by.ListAnnouncementSubscriptionsRequest.Builder
sortOrder(SortOrder sortOrder)
The sort order to use, whether ascending (‘ASC’) or descending (‘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
-
compartmentId
public ListAnnouncementSubscriptionsRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListAnnouncementSubscriptionsRequest.Builder lifecycleState(AnnouncementSubscription.LifecycleState lifecycleState)
A filter to return only announcement subscriptions that match the given lifecycle state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
displayName
public ListAnnouncementSubscriptionsRequest.Builder displayName(String displayName)
A filter to return only resources that match the entire display name given.- Parameters:
displayName
- the value to set- Returns:
- this builder instance
-
id
public ListAnnouncementSubscriptionsRequest.Builder id(String id)
The OCID of the announcement subscription.- Parameters:
id
- the value to set- Returns:
- this builder instance
-
limit
public ListAnnouncementSubscriptionsRequest.Builder limit(Integer limit)
The maximum number of items to return in a paginated “List” call.- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListAnnouncementSubscriptionsRequest.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
-
sortOrder
public ListAnnouncementSubscriptionsRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, whether ascending (‘ASC’) or descending (‘DESC’).- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
sortBy
public ListAnnouncementSubscriptionsRequest.Builder sortBy(ListAnnouncementSubscriptionsRequest.SortBy sortBy)
The criteria to sort by.You can specify only one sort order. The default sort order for the creation date of resources is descending. The default sort order for display names is ascending.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListAnnouncementSubscriptionsRequest.Builder opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the complete request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListAnnouncementSubscriptionsRequest.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 ListAnnouncementSubscriptionsRequest.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 ListAnnouncementSubscriptionsRequest.Builder copy(ListAnnouncementSubscriptionsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListAnnouncementSubscriptionsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListAnnouncementSubscriptionsRequest build()
Build the instance of ListAnnouncementSubscriptionsRequest 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<ListAnnouncementSubscriptionsRequest,Void>
- Returns:
- instance of ListAnnouncementSubscriptionsRequest
-
buildWithoutInvocationCallback
public ListAnnouncementSubscriptionsRequest buildWithoutInvocationCallback()
Build the instance of ListAnnouncementSubscriptionsRequest 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 ListAnnouncementSubscriptionsRequest
-
-