AlertRuleRecommendationsListResponse Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.AlertRuleRecommendationsListResponse

Implements

public final class AlertRuleRecommendationsListResponse
implements JsonSerializable<AlertRuleRecommendationsListResponse>

List of alert rule recommendations.

Constructor Summary

Constructor Description
AlertRuleRecommendationsListResponse()

Creates an instance of AlertRuleRecommendationsListResponse class.

Method Summary

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

Reads an instance of AlertRuleRecommendationsListResponse from the JsonReader.

String nextLink()

Get the nextLink property: URL to fetch the next set of recommendations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<AlertRuleRecommendationResourceInner> value()

Get the value property: the values for the alert rule recommendations.

AlertRuleRecommendationsListResponse withNextLink(String nextLink)

Set the nextLink property: URL to fetch the next set of recommendations.

AlertRuleRecommendationsListResponse withValue(List<AlertRuleRecommendationResourceInner> value)

Set the value property: the values for the alert rule recommendations.

Methods inherited from java.lang.Object

Constructor Details

AlertRuleRecommendationsListResponse

public AlertRuleRecommendationsListResponse()

Creates an instance of AlertRuleRecommendationsListResponse class.

Method Details

fromJson

public static AlertRuleRecommendationsListResponse fromJson(JsonReader jsonReader)

Reads an instance of AlertRuleRecommendationsListResponse from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nextLink

public String nextLink()

Get the nextLink property: URL to fetch the next set of recommendations.

Returns:

the nextLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List<AlertRuleRecommendationResourceInner> value()

Get the value property: the values for the alert rule recommendations.

Returns:

the value value.

withNextLink

public AlertRuleRecommendationsListResponse withNextLink(String nextLink)

Set the nextLink property: URL to fetch the next set of recommendations.

Parameters:

nextLink - the nextLink value to set.

Returns:

the AlertRuleRecommendationsListResponse object itself.

withValue

public AlertRuleRecommendationsListResponse withValue(List<AlertRuleRecommendationResourceInner> value)

Set the value property: the values for the alert rule recommendations.

Parameters:

value - the value value to set.

Returns:

the AlertRuleRecommendationsListResponse object itself.

Applies to