Interface TriggerResource
public interface TriggerResource
An immutable client-side representation of TriggerResource.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the TriggerResource definition.static interface
The TriggerResource definition stages.static interface
The template for TriggerResource update.static interface
The TriggerResource update stages. -
Method Summary
Modifier and TypeMethodDescriptionetag()
Gets the etag property: Etag identifies change in the resource.Get a trigger's event subscription status.com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus>
getEventSubscriptionStatusWithResponse
(com.azure.core.util.Context context) Get a trigger's event subscription status.id()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner object.name()
Gets the name property: The resource name.Gets the properties property: Properties of the trigger.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.Gets the name of the resource group.void
start()
Starts a trigger.void
start
(com.azure.core.util.Context context) Starts a trigger.void
stop()
Stops a trigger.void
stop
(com.azure.core.util.Context context) Stops a trigger.Subscribe event trigger to events.subscribeToEvents
(com.azure.core.util.Context context) Subscribe event trigger to events.type()
Gets the type property: The resource type.Unsubscribe event trigger from events.unsubscribeFromEvents
(com.azure.core.util.Context context) Unsubscribe event trigger from events.update()
Begins update for the TriggerResource resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
properties
Trigger properties()Gets the properties property: Properties of the trigger.- Returns:
- the properties value.
-
name
String name()Gets the name property: The resource name.- Returns:
- the name value.
-
type
String type()Gets the type property: The resource type.- Returns:
- the type value.
-
etag
String etag()Gets the etag property: Etag identifies change in the resource.- Returns:
- the etag value.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
TriggerResourceInner innerModel()Gets the inner com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner object.- Returns:
- the inner object.
-
update
TriggerResource.Update update()Begins update for the TriggerResource resource.- Returns:
- the stage of resource update.
-
refresh
TriggerResource refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
subscribeToEvents
TriggerSubscriptionOperationStatus subscribeToEvents()Subscribe event trigger to events.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
subscribeToEvents
Subscribe event trigger to events.- Parameters:
context
- The context to associate with this operation.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getEventSubscriptionStatusWithResponse
com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus> getEventSubscriptionStatusWithResponse(com.azure.core.util.Context context) Get a trigger's event subscription status.- Parameters:
context
- The context to associate with this operation.- Returns:
- a trigger's event subscription status along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getEventSubscriptionStatus
TriggerSubscriptionOperationStatus getEventSubscriptionStatus()Get a trigger's event subscription status.- Returns:
- a trigger's event subscription status.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
unsubscribeFromEvents
TriggerSubscriptionOperationStatus unsubscribeFromEvents()Unsubscribe event trigger from events.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
unsubscribeFromEvents
Unsubscribe event trigger from events.- Parameters:
context
- The context to associate with this operation.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start()Starts a trigger.- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(com.azure.core.util.Context context) Starts a trigger.- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop()Stops a trigger.- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop(com.azure.core.util.Context context) Stops a trigger.- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-