Class Webhooks
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.webhooks.v1.Webhooks
 
 
- 
 public class Webhooks extends com.ibm.cloud.sdk.core.service.BaseServiceCIS Alert Webhooks. API Version: 1.0.0
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp>createAlertWebhook()Create an alert webhook.com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp>createAlertWebhook(CreateAlertWebhookOptions createAlertWebhookOptions)Create an alert webhook.com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp>deleteWebhook(DeleteWebhookOptions deleteWebhookOptions)Delete an alert webhook.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<GetAlertWebhookResp>getWebhook(GetWebhookOptions getWebhookOptions)Get an alert webhook.com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertWebhooksResp>listWebhooks()List alert webhooks.com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertWebhooksResp>listWebhooks(ListWebhooksOptions listWebhooksOptions)List alert webhooks.static WebhooksnewInstance(String crn)Class method which constructs an instance of the `Webhooks` client.static WebhooksnewInstance(String crn, String serviceName)Class method which constructs an instance of the `Webhooks` client.voidsetCrn(String crn)Sets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp>updateAlertWebhook(UpdateAlertWebhookOptions updateAlertWebhookOptions)Update an alert webhook.- 
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseServiceconfigureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_SERVICE_NAMEpublic static final String DEFAULT_SERVICE_NAME - See Also:
- Constant Field Values
 
 - 
DEFAULT_SERVICE_URLpublic static final String DEFAULT_SERVICE_URL - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
Webhookspublic Webhooks(String crn, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `Webhooks` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- serviceName- the service name to be used when configuring the client instance
- authenticator- the- Authenticatorinstance to be configured for this client
 
 
- 
 - 
Method Detail- 
newInstancepublic static Webhooks newInstance(String crn) Class method which constructs an instance of the `Webhooks` client. The default service name is used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- Returns:
- an instance of the `Webhooks` client using external configuration
 
 - 
newInstancepublic static Webhooks newInstance(String crn, String serviceName) Class method which constructs an instance of the `Webhooks` client. The specified service name is used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `Webhooks` client using external configuration
 
 - 
getCrnpublic String getCrn() Gets the crn. Full url-encoded CRN of the service instance.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
listWebhookspublic com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertWebhooksResp> listWebhooks(ListWebhooksOptions listWebhooksOptions) List alert webhooks. List configured alert webhooks for the CIS instance.- Parameters:
- listWebhooksOptions- the- ListWebhooksOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeListAlertWebhooksResp
 
 - 
listWebhookspublic com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertWebhooksResp> listWebhooks() List alert webhooks. List configured alert webhooks for the CIS instance.- Returns:
- a ServiceCallwith a result of typeListAlertWebhooksResp
 
 - 
createAlertWebhookpublic com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp> createAlertWebhook(CreateAlertWebhookOptions createAlertWebhookOptions) Create an alert webhook. Create a new alert webhook for the CIS instance.- Parameters:
- createAlertWebhookOptions- the- CreateAlertWebhookOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeWebhookSuccessResp
 
 - 
createAlertWebhookpublic com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp> createAlertWebhook() Create an alert webhook. Create a new alert webhook for the CIS instance.- Returns:
- a ServiceCallwith a result of typeWebhookSuccessResp
 
 - 
getWebhookpublic com.ibm.cloud.sdk.core.http.ServiceCall<GetAlertWebhookResp> getWebhook(GetWebhookOptions getWebhookOptions) Get an alert webhook. Get an alert webhook for the CIS instance.- Parameters:
- getWebhookOptions- the- GetWebhookOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeGetAlertWebhookResp
 
 - 
updateAlertWebhookpublic com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp> updateAlertWebhook(UpdateAlertWebhookOptions updateAlertWebhookOptions) Update an alert webhook. Update an existing alert webhook for the CIS instance.- Parameters:
- updateAlertWebhookOptions- the- UpdateAlertWebhookOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeWebhookSuccessResp
 
 - 
deleteWebhookpublic com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp> deleteWebhook(DeleteWebhookOptions deleteWebhookOptions) Delete an alert webhook. Delete an alert webhook for the CIS instance.- Parameters:
- deleteWebhookOptions- the- DeleteWebhookOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeWebhookSuccessResp
 
 
- 
 
-