Interface TriggerResource
-
public interface TriggerResource
An immutable client-side representation of TriggerResource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TriggerResource.Definition
The entirety of the TriggerResource definition.static interface
TriggerResource.DefinitionStages
The TriggerResource definition stages.static interface
TriggerResource.Update
The template for TriggerResource update.static interface
TriggerResource.UpdateStages
The TriggerResource update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
etag()
Gets the etag property: Etag identifies change in the resource.TriggerSubscriptionOperationStatus
getEventSubscriptionStatus()
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.String
id()
Gets the id property: Fully qualified resource Id for the resource.TriggerResourceInner
innerModel()
Gets the inner com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner object.String
name()
Gets the name property: The resource name.Trigger
properties()
Gets the properties property: Properties of the trigger.TriggerResource
refresh()
Refreshes the resource to sync with Azure.TriggerResource
refresh(com.azure.core.util.Context context)
Refreshes the resource to sync with Azure.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.TriggerSubscriptionOperationStatus
subscribeToEvents()
Subscribe event trigger to events.TriggerSubscriptionOperationStatus
subscribeToEvents(com.azure.core.util.Context context)
Subscribe event trigger to events.String
type()
Gets the type property: The resource type.TriggerSubscriptionOperationStatus
unsubscribeFromEvents()
Unsubscribe event trigger from events.TriggerSubscriptionOperationStatus
unsubscribeFromEvents(com.azure.core.util.Context context)
Unsubscribe event trigger from events.TriggerResource.Update
update()
Begins update for the TriggerResource resource.
-
-
-
Method Detail
-
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.
-
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
TriggerResource refresh(com.azure.core.util.Context context)
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
TriggerSubscriptionOperationStatus subscribeToEvents(com.azure.core.util.Context context)
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.
-
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.
-
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.
-
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
TriggerSubscriptionOperationStatus unsubscribeFromEvents(com.azure.core.util.Context context)
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.
-
-