Class PolicySetDefinitionVersionInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.resources.fluent.models.PolicySetDefinitionVersionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class PolicySetDefinitionVersionInner
extends com.azure.core.management.ProxyResource
The policy set definition version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicySetDefinitionVersionInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The policy set definition description.Get the displayName property: The display name of the policy set definition.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicySetDefinitionVersionInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.metadata()Get the metadata property: The policy set definition metadata.name()Get the name property: The name of the resource.Get the parameters property: The policy set definition parameters that can be used in policy definition references.Get the policyDefinitionGroups property: The metadata describing groups of policy definition references within the policy set definition.Get the policyDefinitions property: An array of policy definition references.Get the policyType property: The type of policy definition.com.azure.core.management.SystemDataGet the systemData property: The system metadata relating to this resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.version()Get the version property: The policy set definition version in #.#.# format.withDescription(String description) Set the description property: The policy set definition description.withDisplayName(String displayName) Set the displayName property: The display name of the policy set definition.withMetadata(Object metadata) Set the metadata property: The policy set definition metadata.withParameters(Map<String, ParameterDefinitionsValue> parameters) Set the parameters property: The policy set definition parameters that can be used in policy definition references.withPolicyDefinitionGroups(List<PolicyDefinitionGroup> policyDefinitionGroups) Set the policyDefinitionGroups property: The metadata describing groups of policy definition references within the policy set definition.withPolicyDefinitions(List<PolicyDefinitionReference> policyDefinitions) Set the policyDefinitions property: An array of policy definition references.withPolicyType(PolicyType policyType) Set the policyType property: The type of policy definition.withVersion(String version) Set the version property: The policy set definition version in #.#.# format.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
-
PolicySetDefinitionVersionInner
public PolicySetDefinitionVersionInner()Creates an instance of PolicySetDefinitionVersionInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: The system metadata relating to this resource.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
policyType
Get the policyType property: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.- Returns:
- the policyType value.
-
withPolicyType
Set the policyType property: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.- Parameters:
policyType- the policyType value to set.- Returns:
- the PolicySetDefinitionVersionInner object itself.
-
displayName
Get the displayName property: The display name of the policy set definition.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name of the policy set definition.- Parameters:
displayName- the displayName value to set.- Returns:
- the PolicySetDefinitionVersionInner object itself.
-
description
Get the description property: The policy set definition description.- Returns:
- the description value.
-
withDescription
Set the description property: The policy set definition description.- Parameters:
description- the description value to set.- Returns:
- the PolicySetDefinitionVersionInner object itself.
-
metadata
Get the metadata property: The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.- Parameters:
metadata- the metadata value to set.- Returns:
- the PolicySetDefinitionVersionInner object itself.
-
parameters
Get the parameters property: The policy set definition parameters that can be used in policy definition references.- Returns:
- the parameters value.
-
withParameters
public PolicySetDefinitionVersionInner withParameters(Map<String, ParameterDefinitionsValue> parameters) Set the parameters property: The policy set definition parameters that can be used in policy definition references.- Parameters:
parameters- the parameters value to set.- Returns:
- the PolicySetDefinitionVersionInner object itself.
-
policyDefinitions
Get the policyDefinitions property: An array of policy definition references.- Returns:
- the policyDefinitions value.
-
withPolicyDefinitions
public PolicySetDefinitionVersionInner withPolicyDefinitions(List<PolicyDefinitionReference> policyDefinitions) Set the policyDefinitions property: An array of policy definition references.- Parameters:
policyDefinitions- the policyDefinitions value to set.- Returns:
- the PolicySetDefinitionVersionInner object itself.
-
policyDefinitionGroups
Get the policyDefinitionGroups property: The metadata describing groups of policy definition references within the policy set definition.- Returns:
- the policyDefinitionGroups value.
-
withPolicyDefinitionGroups
public PolicySetDefinitionVersionInner withPolicyDefinitionGroups(List<PolicyDefinitionGroup> policyDefinitionGroups) Set the policyDefinitionGroups property: The metadata describing groups of policy definition references within the policy set definition.- Parameters:
policyDefinitionGroups- the policyDefinitionGroups value to set.- Returns:
- the PolicySetDefinitionVersionInner object itself.
-
version
Get the version property: The policy set definition version in #.#.# format.- Returns:
- the version value.
-
withVersion
Set the version property: The policy set definition version in #.#.# format.- Parameters:
version- the version value to set.- Returns:
- the PolicySetDefinitionVersionInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static PolicySetDefinitionVersionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicySetDefinitionVersionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicySetDefinitionVersionInner 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 PolicySetDefinitionVersionInner.
-