NotificationRule Class

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

Implements

public class NotificationRule
implements JsonSerializable<NotificationRule>

Notification rule model.

Constructor Summary

Constructor Description
NotificationRule()

Creates an instance of NotificationRule class.

Method Summary

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

Reads an instance of NotificationRule from the JsonReader.

List<String> getActionGroupIds()

Get the actionGroupIds property: The action groups to notify.

String getCreatedBy()

Get the createdBy property: The user that created.

OffsetDateTime getCreatedDateTime()

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

String getDisplayName()

Get the displayName property: The name of the notification rule.

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).

String getNotificationRuleId()

Get the notificationRuleId property: The unique identifier of the notification rule.

NotificationScopeType getScope()

Get the scope property: The scope of the notification rule.

NotificationRule setActionGroupIds(List<String> actionGroupIds)

Set the actionGroupIds property: The action groups to notify.

NotificationRule setDisplayName(String displayName)

Set the displayName property: The name of the notification rule.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

NotificationRule

public NotificationRule()

Creates an instance of NotificationRule class.

Method Details

fromJson

public static NotificationRule fromJson(JsonReader jsonReader)

Reads an instance of NotificationRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getActionGroupIds

public List<String> getActionGroupIds()

Get the actionGroupIds property: The action groups to notify.

Returns:

the actionGroupIds value.

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.

getDisplayName

public String getDisplayName()

Get the displayName property: The name of the notification rule.

Returns:

the displayName 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.

getNotificationRuleId

public String getNotificationRuleId()

Get the notificationRuleId property: The unique identifier of the notification rule.

Returns:

the notificationRuleId value.

getScope

public NotificationScopeType getScope()

Get the scope property: The scope of the notification rule.

Returns:

the scope value.

setActionGroupIds

public NotificationRule setActionGroupIds(List<String> actionGroupIds)

Set the actionGroupIds property: The action groups to notify.

Required when create the resource.

Parameters:

actionGroupIds - the actionGroupIds value to set.

Returns:

the NotificationRule object itself.

setDisplayName

public NotificationRule setDisplayName(String displayName)

Set the displayName property: The name of the notification rule.

Required when create the resource.

Parameters:

displayName - the displayName value to set.

Returns:

the NotificationRule object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to