次の方法で共有


PolicyDefinitionGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.PolicyDefinitionGroup

Implements

public final class PolicyDefinitionGroup
implements JsonSerializable<PolicyDefinitionGroup>

The policy definition group.

Constructor Summary

Constructor Description
PolicyDefinitionGroup()

Creates an instance of PolicyDefinitionGroup class.

Method Summary

Modifier and Type Method and Description
String additionalMetadataId()

Get the additionalMetadataId property: A resource ID of a resource that contains additional metadata about the group.

String category()

Get the category property: The group's category.

String description()

Get the description property: The group's description.

String displayName()

Get the displayName property: The group's display name.

static PolicyDefinitionGroup fromJson(JsonReader jsonReader)

Reads an instance of PolicyDefinitionGroup from the JsonReader.

String name()

Get the name property: The name of the group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PolicyDefinitionGroup withAdditionalMetadataId(String additionalMetadataId)

Set the additionalMetadataId property: A resource ID of a resource that contains additional metadata about the group.

PolicyDefinitionGroup withCategory(String category)

Set the category property: The group's category.

PolicyDefinitionGroup withDescription(String description)

Set the description property: The group's description.

PolicyDefinitionGroup withDisplayName(String displayName)

Set the displayName property: The group's display name.

PolicyDefinitionGroup withName(String name)

Set the name property: The name of the group.

Methods inherited from java.lang.Object

Constructor Details

PolicyDefinitionGroup

public PolicyDefinitionGroup()

Creates an instance of PolicyDefinitionGroup class.

Method Details

additionalMetadataId

public String additionalMetadataId()

Get the additionalMetadataId property: A resource ID of a resource that contains additional metadata about the group.

Returns:

the additionalMetadataId value.

category

public String category()

Get the category property: The group's category.

Returns:

the category value.

description

public String description()

Get the description property: The group's description.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The group's display name.

Returns:

the displayName value.

fromJson

public static PolicyDefinitionGroup fromJson(JsonReader jsonReader)

Reads an instance of PolicyDefinitionGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PolicyDefinitionGroup 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 the group.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalMetadataId

public PolicyDefinitionGroup withAdditionalMetadataId(String additionalMetadataId)

Set the additionalMetadataId property: A resource ID of a resource that contains additional metadata about the group.

Parameters:

additionalMetadataId - the additionalMetadataId value to set.

Returns:

the PolicyDefinitionGroup object itself.

withCategory

public PolicyDefinitionGroup withCategory(String category)

Set the category property: The group's category.

Parameters:

category - the category value to set.

Returns:

the PolicyDefinitionGroup object itself.

withDescription

public PolicyDefinitionGroup withDescription(String description)

Set the description property: The group's description.

Parameters:

description - the description value to set.

Returns:

the PolicyDefinitionGroup object itself.

withDisplayName

public PolicyDefinitionGroup withDisplayName(String displayName)

Set the displayName property: The group's display name.

Parameters:

displayName - the displayName value to set.

Returns:

the PolicyDefinitionGroup object itself.

withName

public PolicyDefinitionGroup withName(String name)

Set the name property: The name of the group.

Parameters:

name - the name value to set.

Returns:

the PolicyDefinitionGroup object itself.

Applies to