Partager via


RuleListResult Class

  • java.lang.Object
    • com.azure.resourcemanager.servicebus.models.RuleListResult

Implements

public final class RuleListResult
implements JsonSerializable<RuleListResult>

The response of the List rule operation.

Constructor Summary

Constructor Description
RuleListResult()

Creates an instance of RuleListResult class.

Method Summary

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

Reads an instance of RuleListResult from the JsonReader.

String nextLink()

Get the nextLink property: Link to the next set of results.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<RuleInner> value()

Get the value property: Result of the List Rules operation.

RuleListResult withNextLink(String nextLink)

Set the nextLink property: Link to the next set of results.

RuleListResult withValue(List<RuleInner> value)

Set the value property: Result of the List Rules operation.

Methods inherited from java.lang.Object

Constructor Details

RuleListResult

public RuleListResult()

Creates an instance of RuleListResult class.

Method Details

fromJson

public static RuleListResult fromJson(JsonReader jsonReader)

Reads an instance of RuleListResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RuleListResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RuleListResult.

nextLink

public String nextLink()

Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of rules.

Returns:

the nextLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List<RuleInner> value()

Get the value property: Result of the List Rules operation.

Returns:

the value value.

withNextLink

public RuleListResult withNextLink(String nextLink)

Set the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of rules.

Parameters:

nextLink - the nextLink value to set.

Returns:

the RuleListResult object itself.

withValue

public RuleListResult withValue(List<RuleInner> value)

Set the value property: Result of the List Rules operation.

Parameters:

value - the value value to set.

Returns:

the RuleListResult object itself.

Applies to