Trigger Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.Trigger

Implements

public class Trigger
implements JsonSerializable<Trigger>

Trigger model.

Constructor Summary

Constructor Description
Trigger()

Creates an instance of Trigger class.

Method Summary

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

Reads an instance of Trigger from the JsonReader.

String getCreatedBy()

Get the createdBy property: The user that created.

OffsetDateTime getCreatedDateTime()

Get the createdDateTime property: The creation datetime(RFC 3339 literal format).

String getDescription()

Get the description property: The description of the trigger.

String getDisplayName()

Get the displayName property: The name of the trigger.

TriggerType getKind()

Get the kind property: The type of the trigger.

String getLastModifiedBy()

Get the lastModifiedBy property: The user that last modified.

OffsetDateTime getLastModifiedDateTime()

Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).

TriggerState getState()

Get the state property: The current state of the trigger.

StateDetails getStateDetails()

Get the stateDetails property: Details of current state of the trigger.

String getTriggerId()

Get the triggerId property: The unique identifier of the trigger.

Trigger setDescription(String description)

Set the description property: The description of the trigger.

Trigger setDisplayName(String displayName)

Set the displayName property: The name of the trigger.

Trigger setState(TriggerState state)

Set the state property: The current state of the trigger.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

Trigger

public Trigger()

Creates an instance of Trigger class.

Method Details

fromJson

public static Trigger fromJson(JsonReader jsonReader)

Reads an instance of Trigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCreatedBy

public String getCreatedBy()

Get the createdBy property: The user that created.

Returns:

the createdBy value.

getCreatedDateTime

public OffsetDateTime getCreatedDateTime()

Get the createdDateTime property: The creation datetime(RFC 3339 literal format).

Returns:

the createdDateTime value.

getDescription

public String getDescription()

Get the description property: The description of the trigger.

Returns:

the description value.

getDisplayName

public String getDisplayName()

Get the displayName property: The name of the trigger.

Returns:

the displayName value.

getKind

public TriggerType getKind()

Get the kind property: The type of the trigger.

Returns:

the kind value.

getLastModifiedBy

public String getLastModifiedBy()

Get the lastModifiedBy property: The user that last modified.

Returns:

the lastModifiedBy value.

getLastModifiedDateTime

public OffsetDateTime getLastModifiedDateTime()

Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).

Returns:

the lastModifiedDateTime value.

getState

public TriggerState getState()

Get the state property: The current state of the trigger.

Returns:

the state value.

getStateDetails

public StateDetails getStateDetails()

Get the stateDetails property: Details of current state of the trigger.

Returns:

the stateDetails value.

getTriggerId

public String getTriggerId()

Get the triggerId property: The unique identifier of the trigger.

Returns:

the triggerId value.

setDescription

public Trigger setDescription(String description)

Set the description property: The description of the trigger.

Parameters:

description - the description value to set.

Returns:

the Trigger object itself.

setDisplayName

public Trigger setDisplayName(String displayName)

Set the displayName property: The name of the trigger.

Required when create the resource.

Parameters:

displayName - the displayName value to set.

Returns:

the Trigger object itself.

setState

public Trigger setState(TriggerState state)

Set the state property: The current state of the trigger.

Parameters:

state - the state value to set.

Returns:

the Trigger object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to