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 Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGroupProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the clientAppGroupIdentifier property: The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).static ApplicationGroupPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGroupProperties from the JsonReader.Get the isEnabled property: Determines if Application Group is allowed to create connection with namespace or not.policies()Get the policies property: List of group policies that define the behavior of application group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientAppGroupIdentifier(String clientAppGroupIdentifier) Set the clientAppGroupIdentifier property: The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).withIsEnabled(Boolean isEnabled) Set the isEnabled property: Determines if Application Group is allowed to create connection with namespace or not.withPolicies(List<ApplicationGroupPolicy> policies) Set the policies property: List of group policies that define the behavior of application group.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
-
ApplicationGroupProperties
public ApplicationGroupProperties()Creates an instance of ApplicationGroupProperties class.
-
-
Method Details
-
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
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
Get the clientAppGroupIdentifier property: The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).- Returns:
- the clientAppGroupIdentifier value.
-
withClientAppGroupIdentifier
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
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
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
- Specified by:
toJsonin interfacecom.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.
-