PolicyDefinitionInner Class

public final class PolicyDefinitionInner
extends ProxyResource

The policy definition.

Constructor Summary

Constructor Description
PolicyDefinitionInner()

Creates an instance of PolicyDefinitionInner 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 PolicyDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of PolicyDefinitionInner 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.

PolicyDefinitionInner withDescription(String description)

Set the description property: The policy definition description.

PolicyDefinitionInner withDisplayName(String displayName)

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

PolicyDefinitionInner withMetadata(Object metadata)

Set the metadata property: The policy definition metadata.

PolicyDefinitionInner withMode(String mode)

Set the mode property: The policy definition mode.

PolicyDefinitionInner withParameters(Map<String,ParameterDefinitionsValue> parameters)

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

PolicyDefinitionInner withPolicyRule(Object policyRule)

Set the policyRule property: The policy rule.

PolicyDefinitionInner withPolicyType(PolicyType policyType)

Set the policyType property: The type of policy definition.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PolicyDefinitionInner

public PolicyDefinitionInner()

Creates an instance of PolicyDefinitionInner 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 PolicyDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of PolicyDefinitionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PolicyDefinitionInner 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:

PolicyDefinitionInner.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:

PolicyDefinitionInner.name()

Returns:

the name value.

parameters

public Map 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:

PolicyDefinitionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PolicyDefinitionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDescription

public PolicyDefinitionInner withDescription(String description)

Set the description property: The policy definition description.

Parameters:

description - the description value to set.

Returns:

the PolicyDefinitionInner object itself.

withDisplayName

public PolicyDefinitionInner withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the PolicyDefinitionInner object itself.

withMetadata

public PolicyDefinitionInner 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 PolicyDefinitionInner object itself.

withMode

public PolicyDefinitionInner 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 PolicyDefinitionInner object itself.

withParameters

public PolicyDefinitionInner withParameters(Map 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 PolicyDefinitionInner object itself.

withPolicyRule

public PolicyDefinitionInner withPolicyRule(Object policyRule)

Set the policyRule property: The policy rule.

Parameters:

policyRule - the policyRule value to set.

Returns:

the PolicyDefinitionInner object itself.

withPolicyType

public PolicyDefinitionInner 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 PolicyDefinitionInner object itself.

Applies to