Compartilhar via


ApplicationGroupPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.eventhubs.models.ApplicationGroupPolicy

Implements

public class ApplicationGroupPolicy
implements JsonSerializable<ApplicationGroupPolicy>

Properties of the Application Group policy.

Constructor Summary

Constructor Description
ApplicationGroupPolicy()

Creates an instance of ApplicationGroupPolicy class.

Method Summary

Modifier and Type Method and Description
static ApplicationGroupPolicy fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGroupPolicy from the JsonReader.

String name()

Get the name property: The Name of this policy.

JsonWriter toJson(JsonWriter jsonWriter)
ApplicationGroupPolicyType type()

Get the type property: Application Group Policy types.

void validate()

Validates the instance.

ApplicationGroupPolicy withName(String name)

Set the name property: The Name of this policy.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGroupPolicy

public ApplicationGroupPolicy()

Creates an instance of ApplicationGroupPolicy class.

Method Details

fromJson

public static ApplicationGroupPolicy fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGroupPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGroupPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The Name of this policy.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ApplicationGroupPolicyType type()

Get the type property: Application Group Policy types.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public ApplicationGroupPolicy withName(String name)

Set the name property: The Name of this policy.

Parameters:

name - the name value to set.

Returns:

the ApplicationGroupPolicy object itself.

Applies to