Compartilhar via


SBSubscriptionListResult Class

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

Implements

public final class SBSubscriptionListResult
implements JsonSerializable<SBSubscriptionListResult>

The response to the List Subscriptions operation.

Constructor Summary

Constructor Description
SBSubscriptionListResult()

Creates an instance of SBSubscriptionListResult class.

Method Summary

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

Reads an instance of SBSubscriptionListResult 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<SBSubscriptionInner> value()

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

SBSubscriptionListResult withNextLink(String nextLink)

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

SBSubscriptionListResult withValue(List<SBSubscriptionInner> value)

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

Methods inherited from java.lang.Object

Constructor Details

SBSubscriptionListResult

public SBSubscriptionListResult()

Creates an instance of SBSubscriptionListResult class.

Method Details

fromJson

public static SBSubscriptionListResult fromJson(JsonReader jsonReader)

Reads an instance of SBSubscriptionListResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nextLink

public String nextLink()

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

Returns:

the nextLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List<SBSubscriptionInner> value()

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

Returns:

the value value.

withNextLink

public SBSubscriptionListResult withNextLink(String nextLink)

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

Parameters:

nextLink - the nextLink value to set.

Returns:

the SBSubscriptionListResult object itself.

withValue

public SBSubscriptionListResult withValue(List<SBSubscriptionInner> value)

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

Parameters:

value - the value value to set.

Returns:

the SBSubscriptionListResult object itself.

Applies to