Class ApplicationGroupProperties

java.lang.Object
com.azure.resourcemanager.eventhubs.fluent.models.ApplicationGroupProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGroupProperties>

public final class ApplicationGroupProperties extends Object implements com.azure.json.JsonSerializable<ApplicationGroupProperties>
The ApplicationGroupProperties model.
  • Constructor Details

    • ApplicationGroupProperties

      public ApplicationGroupProperties()
      Creates an instance of ApplicationGroupProperties class.
  • Method Details

    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Determines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public ApplicationGroupProperties withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: Determines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the ApplicationGroupProperties object itself.
    • clientAppGroupIdentifier

      public String clientAppGroupIdentifier()
      Get the clientAppGroupIdentifier property: The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).
      Returns:
      the clientAppGroupIdentifier value.
    • withClientAppGroupIdentifier

      public ApplicationGroupProperties withClientAppGroupIdentifier(String clientAppGroupIdentifier)
      Set the clientAppGroupIdentifier property: The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).
      Parameters:
      clientAppGroupIdentifier - the clientAppGroupIdentifier value to set.
      Returns:
      the ApplicationGroupProperties object itself.
    • policies

      public List<ApplicationGroupPolicy> policies()
      Get the policies property: List of group policies that define the behavior of application group. The policies can support resource governance scenarios such as limiting ingress or egress traffic.
      Returns:
      the policies value.
    • withPolicies

      public ApplicationGroupProperties withPolicies(List<ApplicationGroupPolicy> policies)
      Set the policies property: List of group policies that define the behavior of application group. The policies can support resource governance scenarios such as limiting ingress or egress traffic.
      Parameters:
      policies - the policies value to set.
      Returns:
      the ApplicationGroupProperties 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<ApplicationGroupProperties>
      Throws:
      IOException
    • fromJson

      public static ApplicationGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApplicationGroupProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApplicationGroupProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ApplicationGroupProperties.