TriggerResource Class

public final class TriggerResource
extends SubResource

Trigger resource type.

Constructor Summary

Constructor Description
TriggerResource()

Creates an instance of TriggerResource class.

Method Summary

Modifier and Type Method and Description
static TriggerResource fromJson(JsonReader jsonReader)

Reads an instance of TriggerResource from the JsonReader.

String getEtag()

Get the etag property: Resource Etag.

String getId()

Get the id property: Fully qualified resource ID for the resource.

String getName()

Get the name property: The name of the resource.

Trigger getProperties()

Get the properties property: Properties of the trigger.

String getType()

Get the type property: The type of the resource.

TriggerResource setProperties(Trigger properties)

Set the properties property: Properties of the trigger.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

TriggerResource

public TriggerResource()

Creates an instance of TriggerResource class.

Method Details

fromJson

public static TriggerResource fromJson(JsonReader jsonReader)

Reads an instance of TriggerResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TriggerResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getEtag

public String getEtag()

Get the etag property: Resource Etag.

Overrides:

TriggerResource.getEtag()

Returns:

the etag value.

getId

public String getId()

Get the id property: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

Overrides:

TriggerResource.getId()

Returns:

the id value.

getName

public String getName()

Get the name property: The name of the resource.

Overrides:

TriggerResource.getName()

Returns:

the name value.

getProperties

public Trigger getProperties()

Get the properties property: Properties of the trigger.

Returns:

the properties value.

getType

public String getType()

Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Overrides:

TriggerResource.getType()

Returns:

the type value.

setProperties

public TriggerResource setProperties(Trigger properties)

Set the properties property: Properties of the trigger.

Parameters:

properties - the properties value to set.

Returns:

the TriggerResource object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TriggerResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to