Class SBClientAffineProperties
java.lang.Object
com.azure.resourcemanager.servicebus.models.SBClientAffineProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SBClientAffineProperties>
public final class SBClientAffineProperties
extends Object
implements com.azure.json.JsonSerializable<SBClientAffineProperties>
Properties specific to client affine subscriptions.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SBClientAffineProperties class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: Indicates the Client ID of the application that created the client-affine subscription.static SBClientAffinePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SBClientAffineProperties from the JsonReader.Get the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.isShared()Get the isShared property: For client-affine subscriptions, this value indicates whether the subscription is shared or not.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: Indicates the Client ID of the application that created the client-affine subscription.withIsDurable(Boolean isDurable) Set the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.withIsShared(Boolean isShared) Set the isShared property: For client-affine subscriptions, this value indicates whether the subscription is shared or not.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SBClientAffineProperties
public SBClientAffineProperties()Creates an instance of SBClientAffineProperties class.
-
-
Method Details
-
clientId
Get the clientId property: Indicates the Client ID of the application that created the client-affine subscription.- Returns:
- the clientId value.
-
withClientId
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.
-
isDurable
Get the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.- Returns:
- the isDurable value.
-
withIsDurable
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SBClientAffineProperties>- Throws:
IOException
-
fromJson
public static SBClientAffineProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-