All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.eventbridge.EventBridge Maven / Gradle / Ivy

The newest version!
package com.aliyun.eventbridge;

import com.aliyun.eventbridge.models.*;
import com.aliyun.eventbridge.util.EventBuilder;
import com.aliyun.tea.TeaException;
import com.aliyun.teautil.models.RuntimeOptions;

public interface EventBridge {

    /**
     * 

* Publish event to the aliyun EventBus. *

*

* There is a convenient way to create {@link CloudEvent} is to * uesing {@link EventBuilder}, avoiding the need to create one manually. *

* * @param eventList a list of {@link CloudEvent},which follow the stanndard of * Open Source CloudEvents * * @return Result of the PutEvents operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ PutEventsResponse putEvents(java.util.List eventList) throws TeaException; /** *

* Publish event to the aliyun EventBus. *

*

* There is a convenient way to create {@link CloudEvent} is to * uesing {@link EventBuilder}, avoiding the need to create one manually. *

* * @param eventList A list of {@link CloudEvent},which follow the stanndard of * Open Source CloudEvents * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the putEventsWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ PutEventsResponse putEventsWithOptions(java.util.List eventList, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Creates a new event bus within your account. This can be a custom event bus which you can use to receive events * from your custom applications and services. *

* * @param request The request param of createEventBus * * @return Result of the createEventBus operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ CreateEventBusResponse createEventBus(CreateEventBusRequest request) throws TeaException; /** *

* Creates a new event bus within your account. This can be a custom event bus which you can use to receive events * from your custom applications and services with RuntimeOptions. *

* * @param request The request param of createEventBus * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the createEventBusWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ CreateEventBusResponse createEventBusWithOptions(CreateEventBusRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Deletes the specified custom event bus in your account,You can't delete your account's default event bus. *

* * @param request The request param of deleteEventBus * * @return Result of the deleteEventBus operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DeleteEventBusResponse deleteEventBus(DeleteEventBusRequest request) throws TeaException; /** *

* Deletes the specified custom event bus in your account,You can't delete your account's default event bus with * RuntimeOptions. *

* * @param request The request param of deleteEventBusWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the deleteEventBusWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DeleteEventBusResponse deleteEventBusWithOptions(DeleteEventBusRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Displays details about an event bus in your account *

* * @param request The request param of getEventBus * * @return Result of the getEventBus operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ GetEventBusResponse getEventBus(GetEventBusRequest request) throws TeaException; /** *

* Displays details about an event bus in your account with RuntimeOptions. *

* * @param request The request param of getEventBusWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the getEventBusWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ GetEventBusResponse getEventBusWithOptions(GetEventBusRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* List all the EventBus in your account, including the default event bus, custom event buses, which meet the search * criteria. *

* * @param request The request param of listEventBuses * * @return Result of the listEventBuses operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ ListEventBusesResponse listEventBuses(ListEventBusesRequest request) throws TeaException; /** *

* List all the EventBus in your account, including the default event bus, custom event buses, which meet the search * criteria with RuntimeOptions. *

* * @param request The request param of listEventBusesWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the listEventBusesWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ ListEventBusesResponse listEventBusesWithOptions(ListEventBusesRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Create an EventBus rule on Aliyun *

* * @param request The request param of createRule * * @return Result of the createRule operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ CreateRuleResponse createRule(CreateRuleRequest request) throws TeaException; /** * Create an EventBus rule on Aliyun with RuntimeOptions. *

* * @param request The request param of createRuleWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the createRuleWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ CreateRuleResponse createRuleWithOptions(CreateRuleRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Deletes the specified rule. *

* * @param request The request param of deleteRule * * @return Result of the deleteRule operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DeleteRuleResponse deleteRule(DeleteRuleRequest request) throws TeaException; /** *

* Deletes the specified rule with RuntimeOptions. *

* * @param request The request param of deleteRuleWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the deleteRuleWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DeleteRuleResponse deleteRuleWithOptions(DeleteRuleRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Disables the specified rule. *

* * @param request The request param of disableRule * * @return Result of the disableRule operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DisableRuleResponse disableRule(DisableRuleRequest request) throws TeaException; /** *

* Disables the specified rule with RuntimeOptions. *

* * @param request The request param of disableRuleWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the disableRuleWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DisableRuleResponse disableRuleWithOptions(DisableRuleRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Enables the specified rule. *

* * @param request The request param of enableRule * * @return Result of the enableRule operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ EnableRuleResponse enableRule(EnableRuleRequest request) throws TeaException; /** *

* Enables the specified rule with RuntimeOptions. *

* * @param request The request param of enableRuleWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the enableRuleWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ EnableRuleResponse enableRuleWithOptions(EnableRuleRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Describes the specified rule. *

* * @param request The request param of getRule * * @return Result of the getRule operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ GetRuleResponse getRule(GetRuleRequest request) throws TeaException; /** *

* Describes the specified rule with RuntimeOptions. *

* * @param request The request param of getRuleWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the getRuleWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ GetRuleResponse getRuleWithOptions(GetRuleRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* List all the rules which meet the search criteria. *

* * @param request The request param of listRules * * @return Result of the listRules operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ ListRulesResponse listRules(ListRulesRequest request) throws TeaException; /** *

* List all the rules which meet the search criteria with RuntimeOptions. *

* * @param request The request param of listRulesWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the listRulesWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ ListRulesResponse listRulesWithOptions(ListRulesRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Update the specified rule. *

* * @param request The request param of updateRule * * @return Result of the updateRule operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ UpdateRuleResponse updateRule(UpdateRuleRequest request) throws TeaException; /** *

* Update the specified rule with RuntimeOptions. *

* * @param request The request param of updateRuleWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the updateRuleWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ UpdateRuleResponse updateRuleWithOptions(UpdateRuleRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Adds the specified targets to the specified rule. *

* * @param request The request param of createTargets * * @return Result of the createTargets operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ CreateTargetsResponse createTargets(CreateTargetsRequest request) throws TeaException; /** *

* Adds the specified targets to the specified rule with RuntimeOptions. *

* * @param request The request param of createTargetsWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the createTargetsWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ CreateTargetsResponse createTargetsWithOptions(CreateTargetsRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Delete the specified targets from the specified rule. *

* * @param request The request param of deleteTargets * * @return Result of the deleteTargets operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DeleteTargetsResponse deleteTargets(DeleteTargetsRequest request) throws TeaException; /** *

* Delete the specified targets from the specified rule with RuntimeOptions. *

* * @param request The request param of deleteTargetsWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the deleteTargetsWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ DeleteTargetsResponse deleteTargetsWithOptions(DeleteTargetsRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* List all the Targets which meet the search criteria. *

* * @param request The request param of listTargets * * @return Result of the listTargets operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ ListTargetsResponse listTargets(ListTargetsRequest request) throws TeaException; /** *

* List all the Targets which meet the search criteria with RuntimeOptions. *

* * @param request The request param of listTargetsWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the listTargetsWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ ListTargetsResponse listTargetsWithOptions(ListTargetsRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Tests whether the specified event pattern matches the provided event. *

* * @param request The request param of testEventPattern * * @return Result of the testEventPattern operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ TestEventPatternResponse testEventPattern(TestEventPatternRequest request) throws TeaException; /** *

* Tests whether the specified event pattern matches the provided event with RuntimeOptions. *

* * @param request The request param of testEventPatternWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the testEventPatternWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ TestEventPatternResponse testEventPatternWithOptions(TestEventPatternRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Query the event traces by the event Id. *

* * @param request The request param of queryEventTraces * * @return Result of the queryEventTraces operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ QueryEventTracesResponse queryEventTraces(QueryEventTracesRequest request) throws TeaException; /** *

* Query the event traces by the event Id with RuntimeOptions. *

* * @param request The request param of queryEventTracesWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the queryEventTracesWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ QueryEventTracesResponse queryEventTracesWithOptions(QueryEventTracesRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Query the event traces by the event Id. *

* * @param request The request param of queryEventByEventId * * @return Result of the QueryEventByEventId operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ QueryEventByEventIdResponse queryEventByEventId(QueryEventByEventIdRequest request) throws TeaException; /** *

* Query the event traces by the event Id with RuntimeOptions. *

* * @param request The request param of queryEventByEventIdWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the queryEventByEventIdWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ QueryEventByEventIdResponse queryEventByEventIdWithOptions(QueryEventByEventIdRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** *

* Query the event traces by the event period. *

* * @param request The request param of queryEventsByPeriod * * @return Result of the queryEventsByPeriod operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ QueryEventsByPeriodResponse queryEventsByPeriod(QueryEventsByPeriodRequest request) throws TeaException; /** *

* Query the event traces by the event period with RuntimeOptions. *

* * @param request The request param of queryEventsByPeriodWithOptions * @param runtime When want to custom the request context,such as timeout,localAddr and so on, it can be seted by * {@link RuntimeOptions} * * @return Result of the queryEventsByPeriodWithOptions operation returned by the service. * * @throws TeaException All the exception occurs due to expected or unexpected causes. When the exception is from * Eventbridge service, the error message is start with [EventBridgeError]. */ QueryEventsByPeriodResponse queryEventsByPeriodWithOptions(QueryEventsByPeriodRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws TeaException; /** * Encapsulate the request and invoke the network * @param action the api name * @param protocol http or https * @param method e.g. GET * @param pathname pathname of every api * @param query which contains request params * @param body content of request * @param runtime which controls some details of call api, such as retry times * @return the response */ java.util.Map doRequest(String action, String protocol, String method, String pathname, java.util.Map query, Object body, RuntimeOptions runtime); /** * Creates a new event source within your account */ CreateEventSourceResponse createEventSource(CreateEventSourceRequest request); /** * Creates a new event source within your account */ CreateEventSourceResponse createEventSourceWithOptions(CreateEventSourceRequest request, RuntimeOptions runtime); /** * Delete the event source */ DeleteEventSourceResponse deleteEventSource(DeleteEventSourceRequest request); /** * Delete the event source */ DeleteEventSourceResponse deleteEventSourceWithOptions(DeleteEventSourceRequest request, RuntimeOptions runtime); /** * Update the event source */ UpdateEventSourceResponse updateEventSource(UpdateEventSourceRequest request); /** * Update the event source */ UpdateEventSourceResponse updateEventSourceWithOptions(UpdateEventSourceRequest request, RuntimeOptions runtime); /** * List the user defined event source within your account */ ListUserDefinedResponse listUserDefinedEventSources(ListUserDefinedRequest request); /** * List the user defined event source within your account */ ListUserDefinedResponse listUserDefinedEventSourcesWithOptions(ListUserDefinedRequest request, RuntimeOptions runtime); /** * List the aliyun official event source within your account */ ListAliyunOfficialResponse listAliyunOfficialEventSources(ListAliyunOfficialRequest request); /** * List the aliyun official event source within your account */ ListAliyunOfficialResponse listAliyunOfficialEventSourcesWithOptions(ListAliyunOfficialRequest request, RuntimeOptions runtime); /** * Create event streaming procss */ CreateEventStreamingResponse createEventStreaming(CreateEventStreamingRequest request); /** * Create event streaming procss */ CreateEventStreamingResponse createEventStreamingWithOptions(CreateEventStreamingRequest request, RuntimeOptions runtime); /** * delete event streaming */ DeleteEventStreamingResponse deleteEventStreaming(DeleteEventStreamingRequest request); /** * delete event streaming */ DeleteEventStreamingResponse deleteEventStreamingWithOptions(DeleteEventStreamingRequest request, RuntimeOptions runtime); /** * create event streaming */ GetEventStreamingResponse getEventStreaming(GetEventStreamingRequest request); /** * create event streaming */ GetEventStreamingResponse getEventStreamingWithOptions(GetEventStreamingRequest request, RuntimeOptions runtime); /** * List the metrics of event streaming */ ListEventStreamingMetricsResponse listEventStreamingMetrics(ListEventStreamingMetricsRequest request); /** * List the metrics of event streaming */ ListEventStreamingMetricsResponse listEventStreamingMetricsWithOptions(ListEventStreamingMetricsRequest request, RuntimeOptions runtime); /** * create event streaming */ ListEventStreamingsResponse listEventStreamings(ListEventStreamingsRequest request); /** * create event streaming */ ListEventStreamingsResponse listEventStreamingsWithOptions(ListEventStreamingsRequest request, RuntimeOptions runtime); /** * delete event streaming */ PauseEventStreamingResponse pauseEventStreaming(PauseEventStreamingRequest request); /** * delete event streaming */ PauseEventStreamingResponse pauseEventStreamingWithOptions(PauseEventStreamingRequest request, RuntimeOptions runtime); /** * create event streaming */ StartEventStreamingResponse startEventStreaming(StartEventStreamingRequest request); /** * deprecated please use startEventStreamingWithOptions */ StartEventStreamingResponse startEventStreamingsWithOptions(StartEventStreamingRequest request, RuntimeOptions runtime); /** * create event streaming */ StartEventStreamingResponse startEventStreamingWithOptions(StartEventStreamingRequest request, RuntimeOptions runtime); /** * Update event streaming procss */ UpdateEventStreamingResponse updateEventStreaming(UpdateEventStreamingRequest request); /** * create event streaming */ UpdateEventStreamingResponse updateEventStreamingWithOptions(UpdateEventStreamingRequest request, RuntimeOptions runtime); /** * List the saas event source within your account. */ ListPartnerEventSourcesResponse listPartnerEventSources(ListPartnerEventSourcesRequest request); /** * List the metrics of event streaming */ ListPartnerEventSourcesResponse listPartnerEventSourcesWithOptions(ListPartnerEventSourcesRequest request, RuntimeOptions runtime); /** * Query the event by the event Id. */ QueryEventsResponse queryEvents(QueryEventsRequest request); /** * Query the event by the event Id. */ QueryEventsResponse queryEventsWithOptions(QueryEventsRequest request, RuntimeOptions runtime); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy