SBClientAffineProperties Class

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

Implements

public final class SBClientAffineProperties
implements JsonSerializable<SBClientAffineProperties>

Properties specific to client affine subscriptions.

Constructor Summary

Constructor Description
SBClientAffineProperties()

Creates an instance of SBClientAffineProperties class.

Method Summary

Modifier and Type Method and Description
String clientId()

Get the clientId property: Indicates the Client ID of the application that created the client-affine subscription.

static SBClientAffineProperties fromJson(JsonReader jsonReader)

Reads an instance of SBClientAffineProperties from the JsonReader.

Boolean isDurable()

Get the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.

Boolean isShared()

Get the isShared property: For client-affine subscriptions, this value indicates whether the subscription is shared or not.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SBClientAffineProperties withClientId(String clientId)

Set the clientId property: Indicates the Client ID of the application that created the client-affine subscription.

SBClientAffineProperties withIsDurable(Boolean isDurable)

Set the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.

SBClientAffineProperties withIsShared(Boolean isShared)

Set the isShared property: For client-affine subscriptions, this value indicates whether the subscription is shared or not.

Methods inherited from java.lang.Object

Constructor Details

SBClientAffineProperties

public SBClientAffineProperties()

Creates an instance of SBClientAffineProperties class.

Method Details

clientId

public String clientId()

Get the clientId property: Indicates the Client ID of the application that created the client-affine subscription.

Returns:

the clientId value.

fromJson

public static SBClientAffineProperties fromJson(JsonReader jsonReader)

Reads an instance of SBClientAffineProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDurable

public Boolean isDurable()

Get the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.

Returns:

the isDurable value.

isShared

public Boolean isShared()

Get the isShared property: For client-affine subscriptions, this value indicates whether the subscription is shared or not.

Returns:

the isShared value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClientId

public SBClientAffineProperties withClientId(String clientId)

Set the clientId property: Indicates the Client ID of the application that created the client-affine subscription.

Parameters:

clientId - the clientId value to set.

Returns:

the SBClientAffineProperties object itself.

withIsDurable

public SBClientAffineProperties withIsDurable(Boolean isDurable)

Set the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.

Parameters:

isDurable - the isDurable value to set.

Returns:

the SBClientAffineProperties object itself.

withIsShared

public SBClientAffineProperties withIsShared(Boolean isShared)

Set the isShared property: For client-affine subscriptions, this value indicates whether the subscription is shared or not.

Parameters:

isShared - the isShared value to set.

Returns:

the SBClientAffineProperties object itself.

Applies to