Compartilhar via


PolicyDefinitionVersionInner Class

public final class PolicyDefinitionVersionInner
extends ProxyResource

The ID of the policy definition version.

Constructor Summary

Constructor Description
PolicyDefinitionVersionInner()

Creates an instance of PolicyDefinitionVersionInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The policy definition description.

String displayName()

Get the displayName property: The display name of the policy definition.

static PolicyDefinitionVersionInner fromJson(JsonReader jsonReader)

Reads an instance of PolicyDefinitionVersionInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Object metadata()

Get the metadata property: The policy definition metadata.

String mode()

Get the mode property: The policy definition mode.

String name()

Get the name property: The name of the resource.

Map<String,ParameterDefinitionsValue> parameters()

Get the parameters property: The parameter definitions for parameters used in the policy rule.

Object policyRule()

Get the policyRule property: The policy rule.

PolicyType policyType()

Get the policyType property: The type of policy definition.

SystemData systemData()

Get the systemData property: The system metadata relating to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String version()

Get the version property: The policy definition version in #.#.# format.

PolicyDefinitionVersionInner withDescription(String description)

Set the description property: The policy definition description.

PolicyDefinitionVersionInner withDisplayName(String displayName)

Set the displayName property: The display name of the policy definition.

PolicyDefinitionVersionInner withMetadata(Object metadata)

Set the metadata property: The policy definition metadata.

PolicyDefinitionVersionInner withMode(String mode)

Set the mode property: The policy definition mode.

PolicyDefinitionVersionInner withParameters(Map<String,ParameterDefinitionsValue> parameters)

Set the parameters property: The parameter definitions for parameters used in the policy rule.

PolicyDefinitionVersionInner withPolicyRule(Object policyRule)

Set the policyRule property: The policy rule.

PolicyDefinitionVersionInner withPolicyType(PolicyType policyType)

Set the policyType property: The type of policy definition.

PolicyDefinitionVersionInner withVersion(String version)

Set the version property: The policy definition version in #.#.# format.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PolicyDefinitionVersionInner

public PolicyDefinitionVersionInner()

Creates an instance of PolicyDefinitionVersionInner class.

Method Details

description

public String description()

Get the description property: The policy definition description.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The display name of the policy definition.

Returns:

the displayName value.

fromJson

public static PolicyDefinitionVersionInner fromJson(JsonReader jsonReader)

Reads an instance of PolicyDefinitionVersionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PolicyDefinitionVersionInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

PolicyDefinitionVersionInner.id()

Returns:

the id value.

metadata

public Object metadata()

Get the metadata property: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.

Returns:

the metadata value.

mode

public String mode()

Get the mode property: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.

Returns:

the mode value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PolicyDefinitionVersionInner.name()

Returns:

the name value.

parameters

public Map<String,ParameterDefinitionsValue> parameters()

Get the parameters property: The parameter definitions for parameters used in the policy rule. The keys are the parameter names.

Returns:

the parameters value.

policyRule

public Object policyRule()

Get the policyRule property: The policy rule.

Returns:

the policyRule value.

policyType

public PolicyType policyType()

Get the policyType property: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.

Returns:

the policyType value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata relating to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PolicyDefinitionVersionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PolicyDefinitionVersionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: The policy definition version in #.#.# format.

Returns:

the version value.

withDescription

public PolicyDefinitionVersionInner withDescription(String description)

Set the description property: The policy definition description.

Parameters:

description - the description value to set.

Returns:

the PolicyDefinitionVersionInner object itself.

withDisplayName

public PolicyDefinitionVersionInner withDisplayName(String displayName)

Set the displayName property: The display name of the policy definition.

Parameters:

displayName - the displayName value to set.

Returns:

the PolicyDefinitionVersionInner object itself.

withMetadata

public PolicyDefinitionVersionInner withMetadata(Object metadata)

Set the metadata property: The policy 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 PolicyDefinitionVersionInner object itself.

withMode

public PolicyDefinitionVersionInner withMode(String mode)

Set the mode property: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.

Parameters:

mode - the mode value to set.

Returns:

the PolicyDefinitionVersionInner object itself.

withParameters

public PolicyDefinitionVersionInner withParameters(Map<String,ParameterDefinitionsValue> parameters)

Set the parameters property: The parameter definitions for parameters used in the policy rule. The keys are the parameter names.

Parameters:

parameters - the parameters value to set.

Returns:

the PolicyDefinitionVersionInner object itself.

withPolicyRule

public PolicyDefinitionVersionInner withPolicyRule(Object policyRule)

Set the policyRule property: The policy rule.

Parameters:

policyRule - the policyRule value to set.

Returns:

the PolicyDefinitionVersionInner object itself.

withPolicyType

public PolicyDefinitionVersionInner withPolicyType(PolicyType policyType)

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 PolicyDefinitionVersionInner object itself.

withVersion

public PolicyDefinitionVersionInner withVersion(String version)

Set the version property: The policy definition version in #.#.# format.

Parameters:

version - the version value to set.

Returns:

the PolicyDefinitionVersionInner object itself.

Applies to