public static class ListAnnouncementsRequest.Builder extends Object implements BmcRequest.Builder<ListAnnouncementsRequest,Void>
Modifier and Type | Method and Description |
---|---|
ListAnnouncementsRequest.Builder |
announcementType(String announcementType)
The type of announcement.
|
ListAnnouncementsRequest |
build()
Build the instance of ListAnnouncementsRequest as configured by this builder
|
ListAnnouncementsRequest |
buildWithoutInvocationCallback() |
ListAnnouncementsRequest.Builder |
compartmentId(String compartmentId)
The OCID of the compartment.
|
ListAnnouncementsRequest.Builder |
copy(ListAnnouncementsRequest o)
Copy method to populate the builder with values from the given instance.
|
ListAnnouncementsRequest.Builder |
environmentName(String environmentName)
A filter to return only announcements that match a specific environment name.
|
ListAnnouncementsRequest.Builder |
excludeAnnouncementTypes(List<String> excludeAnnouncementTypes)
Exclude The type of announcement.
|
ListAnnouncementsRequest.Builder |
excludeAnnouncementTypes(String singularValue)
Singular setter.
|
ListAnnouncementsRequest.Builder |
invocationCallback(Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
|
ListAnnouncementsRequest.Builder |
isBanner(Boolean isBanner)
Whether the announcement is displayed as a console banner.
|
ListAnnouncementsRequest.Builder |
lifecycleState(ListAnnouncementsRequest.LifecycleState lifecycleState)
The announcement’s current lifecycle state.
|
ListAnnouncementsRequest.Builder |
limit(Integer limit)
The maximum number of items to return in a paginated “List” call.
|
ListAnnouncementsRequest.Builder |
opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.
|
ListAnnouncementsRequest.Builder |
page(String page)
The value of the
opc-next-page response header from the previous “List” call. |
ListAnnouncementsRequest.Builder |
platformType(ListAnnouncementsRequest.PlatformType platformType)
A filter to return only announcements affecting a specific platform.
|
ListAnnouncementsRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
ListAnnouncementsRequest.Builder |
service(String service)
A filter to return only announcements affecting a specific service.
|
ListAnnouncementsRequest.Builder |
sortBy(ListAnnouncementsRequest.SortBy sortBy)
The criteria to sort by.
|
ListAnnouncementsRequest.Builder |
sortOrder(ListAnnouncementsRequest.SortOrder sortOrder)
The sort order to use.
|
ListAnnouncementsRequest.Builder |
timeOneEarliestTime(Date timeOneEarliestTime)
The boundary for the earliest
timeOneValue date on announcements that you want to see. |
ListAnnouncementsRequest.Builder |
timeOneLatestTime(Date timeOneLatestTime)
The boundary for the latest
timeOneValue date on announcements that you want to see. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
body$
public ListAnnouncementsRequest.Builder excludeAnnouncementTypes(List<String> excludeAnnouncementTypes)
Exclude The type of announcement.
public ListAnnouncementsRequest.Builder excludeAnnouncementTypes(String singularValue)
Singular setter. Exclude The type of announcement.
public ListAnnouncementsRequest.Builder invocationCallback(Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic ListAnnouncementsRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic ListAnnouncementsRequest.Builder copy(ListAnnouncementsRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<ListAnnouncementsRequest,Void>
o
- other request from which to copy valuespublic ListAnnouncementsRequest build()
Build the instance of ListAnnouncementsRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.util.internal.Consumer)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<ListAnnouncementsRequest,Void>
public ListAnnouncementsRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment.
this
.public ListAnnouncementsRequest.Builder limit(Integer limit)
The maximum number of items to return in a paginated “List” call.
this
.public ListAnnouncementsRequest.Builder page(String page)
The value of the opc-next-page
response header from the previous “List” call.
this
.public ListAnnouncementsRequest.Builder announcementType(String announcementType)
The type of announcement.
this
.public ListAnnouncementsRequest.Builder lifecycleState(ListAnnouncementsRequest.LifecycleState lifecycleState)
The announcement’s current lifecycle state.
this
.public ListAnnouncementsRequest.Builder isBanner(Boolean isBanner)
Whether the announcement is displayed as a console banner.
this
.public ListAnnouncementsRequest.Builder sortBy(ListAnnouncementsRequest.SortBy sortBy)
The criteria to sort by. You can specify only one sort order.
this
.public ListAnnouncementsRequest.Builder sortOrder(ListAnnouncementsRequest.SortOrder sortOrder)
The sort order to use. (Sorting by announcementType
orders the announcements list according to importance.)
this
.public ListAnnouncementsRequest.Builder timeOneEarliestTime(Date timeOneEarliestTime)
The boundary for the earliest timeOneValue
date on announcements that you want to see.
this
.public ListAnnouncementsRequest.Builder timeOneLatestTime(Date timeOneLatestTime)
The boundary for the latest timeOneValue
date on announcements that you want to see.
this
.public ListAnnouncementsRequest.Builder environmentName(String environmentName)
A filter to return only announcements that match a specific environment name.
this
.public ListAnnouncementsRequest.Builder service(String service)
A filter to return only announcements affecting a specific service.
this
.public ListAnnouncementsRequest.Builder platformType(ListAnnouncementsRequest.PlatformType platformType)
A filter to return only announcements affecting a specific platform.
this
.public ListAnnouncementsRequest.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.
this
.public ListAnnouncementsRequest buildWithoutInvocationCallback()
Copyright © 2016–2022. All rights reserved.