@Generated(value="OracleSDKGenerator", comments="API Version: 20210930") public interface WafAsync extends AutoCloseable
API for the Web Application Firewall service. Use this API to manage regional Web App Firewalls and corresponding policies for protecting HTTP services.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<ChangeNetworkAddressListCompartmentResponse> changeNetworkAddressListCompartment(ChangeNetworkAddressListCompartmentRequest request, AsyncHandler<ChangeNetworkAddressListCompartmentRequest,ChangeNetworkAddressListCompartmentResponse> handler)
Moves a NetworkAddressList resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeWebAppFirewallCompartmentResponse> changeWebAppFirewallCompartment(ChangeWebAppFirewallCompartmentRequest request, AsyncHandler<ChangeWebAppFirewallCompartmentRequest,ChangeWebAppFirewallCompartmentResponse> handler)
Moves a Web App Firewall resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeWebAppFirewallPolicyCompartmentResponse> changeWebAppFirewallPolicyCompartment(ChangeWebAppFirewallPolicyCompartmentRequest request, AsyncHandler<ChangeWebAppFirewallPolicyCompartmentRequest,ChangeWebAppFirewallPolicyCompartmentResponse> handler)
Moves a WebAppFirewallfPolicy resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateNetworkAddressListResponse> createNetworkAddressList(CreateNetworkAddressListRequest request, AsyncHandler<CreateNetworkAddressListRequest,CreateNetworkAddressListResponse> handler)
Creates a new NetworkAddressList.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateWebAppFirewallResponse> createWebAppFirewall(CreateWebAppFirewallRequest request, AsyncHandler<CreateWebAppFirewallRequest,CreateWebAppFirewallResponse> handler)
Creates a new WebAppFirewall.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateWebAppFirewallPolicyResponse> createWebAppFirewallPolicy(CreateWebAppFirewallPolicyRequest request, AsyncHandler<CreateWebAppFirewallPolicyRequest,CreateWebAppFirewallPolicyResponse> handler)
Creates a new WebAppFirewallPolicy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteNetworkAddressListResponse> deleteNetworkAddressList(DeleteNetworkAddressListRequest request, AsyncHandler<DeleteNetworkAddressListRequest,DeleteNetworkAddressListResponse> handler)
Deletes a NetworkAddressList resource identified by the OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteWebAppFirewallResponse> deleteWebAppFirewall(DeleteWebAppFirewallRequest request, AsyncHandler<DeleteWebAppFirewallRequest,DeleteWebAppFirewallResponse> handler)
Deletes a WebAppFirewall resource identified by the OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteWebAppFirewallPolicyResponse> deleteWebAppFirewallPolicy(DeleteWebAppFirewallPolicyRequest request, AsyncHandler<DeleteWebAppFirewallPolicyRequest,DeleteWebAppFirewallPolicyResponse> handler)
Deletes a WebAppFirewallPolicy resource identified by the OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetNetworkAddressListResponse> getNetworkAddressList(GetNetworkAddressListRequest request, AsyncHandler<GetNetworkAddressListRequest,GetNetworkAddressListResponse> handler)
Gets a NetworkAddressList by OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWebAppFirewallResponse> getWebAppFirewall(GetWebAppFirewallRequest request, AsyncHandler<GetWebAppFirewallRequest,GetWebAppFirewallResponse> handler)
Gets a WebAppFirewall by OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWebAppFirewallPolicyResponse> getWebAppFirewallPolicy(GetWebAppFirewallPolicyRequest request, AsyncHandler<GetWebAppFirewallPolicyRequest,GetWebAppFirewallPolicyResponse> handler)
Gets a WebAppFirewallPolicy with the given OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the status of the WorkRequest with the given OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListNetworkAddressListsResponse> listNetworkAddressLists(ListNetworkAddressListsRequest request, AsyncHandler<ListNetworkAddressListsRequest,ListNetworkAddressListsResponse> handler)
Gets a list of all NetworkAddressLists in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListProtectionCapabilitiesResponse> listProtectionCapabilities(ListProtectionCapabilitiesRequest request, AsyncHandler<ListProtectionCapabilitiesRequest,ListProtectionCapabilitiesResponse> handler)
Lists of protection capabilities filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListProtectionCapabilityGroupTagsResponse> listProtectionCapabilityGroupTags(ListProtectionCapabilityGroupTagsRequest request, AsyncHandler<ListProtectionCapabilityGroupTagsRequest,ListProtectionCapabilityGroupTagsResponse> handler)
Lists of available group tags filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWebAppFirewallPoliciesResponse> listWebAppFirewallPolicies(ListWebAppFirewallPoliciesRequest request, AsyncHandler<ListWebAppFirewallPoliciesRequest,ListWebAppFirewallPoliciesResponse> handler)
Gets a list of all WebAppFirewallPolicies in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWebAppFirewallsResponse> listWebAppFirewalls(ListWebAppFirewallsRequest request, AsyncHandler<ListWebAppFirewallsRequest,ListWebAppFirewallsResponse> handler)
Gets a list of all WebAppFirewalls in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Return a (paginated) list of errors for a given WorkRequest.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Return a (paginated) list of logs for a given WorkRequest.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the WorkRequests in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateNetworkAddressListResponse> updateNetworkAddressList(UpdateNetworkAddressListRequest request, AsyncHandler<UpdateNetworkAddressListRequest,UpdateNetworkAddressListResponse> handler)
Update the NetworkAddressList identified by the OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateWebAppFirewallResponse> updateWebAppFirewall(UpdateWebAppFirewallRequest request, AsyncHandler<UpdateWebAppFirewallRequest,UpdateWebAppFirewallResponse> handler)
Updates the WebAppFirewall identified by the OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateWebAppFirewallPolicyResponse> updateWebAppFirewallPolicy(UpdateWebAppFirewallPolicyRequest request, AsyncHandler<UpdateWebAppFirewallPolicyRequest,UpdateWebAppFirewallPolicyResponse> handler)
Update the WebAppFirewallPolicy identified by the OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.