TestsNotificationRule Class

public final class TestsNotificationRule
extends NotificationRule

Tests Notification rule model.

Constructor Summary

Constructor Description
TestsNotificationRule()

Creates an instance of TestsNotificationRule class.

Method Summary

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

Reads an instance of TestsNotificationRule from the JsonReader.

Map<String,TestsNotificationEventFilter> getEventFilters()

Get the eventFilters property: The event to receive notifications for along with filtering conditions.

NotificationScopeType getScope()

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

List<String> getTestIds()

Get the testIds property: The test ids to include.

TestsNotificationRule setActionGroupIds(List<String> actionGroupIds)

Set the actionGroupIds property: The action groups to notify.

TestsNotificationRule setDisplayName(String displayName)

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

TestsNotificationRule setEventFilters(Map<String,TestsNotificationEventFilter> eventFilters)

Set the eventFilters property: The event to receive notifications for along with filtering conditions.

TestsNotificationRule setTestIds(List<String> testIds)

Set the testIds property: The test ids to include.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from NotificationRule

Methods inherited from java.lang.Object

Constructor Details

TestsNotificationRule

public TestsNotificationRule()

Creates an instance of TestsNotificationRule class.

Method Details

fromJson

public static TestsNotificationRule fromJson(JsonReader jsonReader)

Reads an instance of TestsNotificationRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getEventFilters

public Map<String,TestsNotificationEventFilter> getEventFilters()

Get the eventFilters property: The event to receive notifications for along with filtering conditions. Key is a user-assigned identifier for the event filter.

Returns:

the eventFilters value.

getScope

public NotificationScopeType getScope()

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

Overrides:

TestsNotificationRule.getScope()

Returns:

the scope value.

getTestIds

public List<String> getTestIds()

Get the testIds property: The test ids to include. If not provided, notification will be sent for all testIds.

Returns:

the testIds value.

setActionGroupIds

public TestsNotificationRule setActionGroupIds(List<String> actionGroupIds)

Set the actionGroupIds property: The action groups to notify.

Required when create the resource.

Overrides:

TestsNotificationRule.setActionGroupIds(List<String> actionGroupIds)

Parameters:

actionGroupIds

setDisplayName

public TestsNotificationRule setDisplayName(String displayName)

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

Required when create the resource.

Overrides:

TestsNotificationRule.setDisplayName(String displayName)

Parameters:

displayName

setEventFilters

public TestsNotificationRule setEventFilters(Map<String,TestsNotificationEventFilter> eventFilters)

Set the eventFilters property: The event to receive notifications for along with filtering conditions. Key is a user-assigned identifier for the event filter.

Required when create the resource.

Parameters:

eventFilters - the eventFilters value to set.

Returns:

the TestsNotificationRule object itself.

setTestIds

public TestsNotificationRule setTestIds(List<String> testIds)

Set the testIds property: The test ids to include. If not provided, notification will be sent for all testIds.

Parameters:

testIds - the testIds value to set.

Returns:

the TestsNotificationRule object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TestsNotificationRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to