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

    Constructors
    Constructor
    Description
    Creates an instance of SBClientAffineProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the clientId property: Indicates the Client ID of the application that created the client-affine subscription.
    fromJson(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.
    Get the isShared property: For client-affine subscriptions, this value indicates whether the subscription is shared or not.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withClientId(String clientId)
    Set the clientId property: Indicates the Client ID of the application that created the client-affine subscription.
    Set the isDurable property: For client-affine subscriptions, this value indicates whether the subscription is durable or not.
    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, wait

    Methods 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

      public String clientId()
      Get the clientId property: Indicates the Client ID of the application that created the client-affine subscription.
      Returns:
      the clientId value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.