Поделиться через


TriggerResourceInner Class

public final class TriggerResourceInner
extends SubResource

Trigger resource type.

Constructor Summary

Constructor Description
TriggerResourceInner()

Creates an instance of TriggerResourceInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: Etag identifies change in the resource.

static TriggerResourceInner fromJson(JsonReader jsonReader)

Reads an instance of TriggerResourceInner from the JsonReader.

String name()

Get the name property: The resource name.

Trigger properties()

Get the properties property: Properties of the trigger.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The resource type.

void validate()

Validates the instance.

TriggerResourceInner withId(String id)
TriggerResourceInner withProperties(Trigger properties)

Set the properties property: Properties of the trigger.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

TriggerResourceInner

public TriggerResourceInner()

Creates an instance of TriggerResourceInner class.

Method Details

etag

public String etag()

Get the etag property: Etag identifies change in the resource.

Returns:

the etag value.

fromJson

public static TriggerResourceInner fromJson(JsonReader jsonReader)

Reads an instance of TriggerResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TriggerResourceInner 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.

name

public String name()

Get the name property: The resource name.

Returns:

the name value.

properties

public Trigger properties()

Get the properties property: Properties of the trigger.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TriggerResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public TriggerResourceInner withId(String id)

Overrides:

TriggerResourceInner.withId(String id)

Parameters:

id

withProperties

public TriggerResourceInner withProperties(Trigger properties)

Set the properties property: Properties of the trigger.

Parameters:

properties - the properties value to set.

Returns:

the TriggerResourceInner object itself.

Applies to