PolicyDefinitionGroup Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. PolicyDefinitionGroup
- com.
Implements
public final class PolicyDefinitionGroup
implements JsonSerializable<PolicyDefinitionGroup>
The policy definition group.
Constructor Summary
Constructor | Description |
---|---|
PolicyDefinitionGroup() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
additionalMetadataId()
Get the additional |
String |
category()
Get the category property: The group's category. |
String |
description()
Get the description property: The group's description. |
String |
displayName()
Get the display |
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
String |
name()
Get the name property: The name of the group. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Policy |
withAdditionalMetadataId(String additionalMetadataId)
Set the additional |
Policy |
withCategory(String category)
Set the category property: The group's category. |
Policy |
withDescription(String description)
Set the description property: The group's description. |
Policy |
withDisplayName(String displayName)
Set the display |
Policy |
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:
category
public String category()
Get the category property: The group's category.
Returns:
description
public String description()
Get the description property: The group's description.
Returns:
displayName
public String displayName()
Get the displayName property: The group's display name.
Returns:
fromJson
public static PolicyDefinitionGroup fromJson(JsonReader jsonReader)
Reads an instance of PolicyDefinitionGroup from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the group.
Returns:
toJson
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:
Returns:
withCategory
public PolicyDefinitionGroup withCategory(String category)
Set the category property: The group's category.
Parameters:
Returns:
withDescription
public PolicyDefinitionGroup withDescription(String description)
Set the description property: The group's description.
Parameters:
Returns:
withDisplayName
public PolicyDefinitionGroup withDisplayName(String displayName)
Set the displayName property: The group's display name.
Parameters:
Returns:
withName
public PolicyDefinitionGroup withName(String name)
Set the name property: The name of the group.
Parameters:
Returns:
Applies to
Azure SDK for Java