Udostępnij przez


PolicySetDefinitionVersionInner Class

public final class PolicySetDefinitionVersionInner
extends ProxyResource

The policy set definition version.

Constructor Summary

Constructor Description
PolicySetDefinitionVersionInner()

Creates an instance of PolicySetDefinitionVersionInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The policy set definition description.

String displayName()

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

static PolicySetDefinitionVersionInner fromJson(JsonReader jsonReader)

Reads an instance of PolicySetDefinitionVersionInner from the JsonReader.

String id()

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

Object metadata()

Get the metadata property: The policy set definition metadata.

String name()

Get the name property: The name of the resource.

Map<String,ParameterDefinitionsValue> parameters()

Get the parameters property: The policy set definition parameters that can be used in policy definition references.

List<PolicyDefinitionGroup> policyDefinitionGroups()

Get the policyDefinitionGroups property: The metadata describing groups of policy definition references within the policy set definition.

List<PolicyDefinitionReference> policyDefinitions()

Get the policyDefinitions property: An array of policy definition references.

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 set definition version in #.#.# format.

PolicySetDefinitionVersionInner withDescription(String description)

Set the description property: The policy set definition description.

PolicySetDefinitionVersionInner withDisplayName(String displayName)

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

PolicySetDefinitionVersionInner withMetadata(Object metadata)

Set the metadata property: The policy set definition metadata.

PolicySetDefinitionVersionInner withParameters(Map<String,ParameterDefinitionsValue> parameters)

Set the parameters property: The policy set definition parameters that can be used in policy definition references.

PolicySetDefinitionVersionInner withPolicyDefinitionGroups(List<PolicyDefinitionGroup> policyDefinitionGroups)

Set the policyDefinitionGroups property: The metadata describing groups of policy definition references within the policy set definition.

PolicySetDefinitionVersionInner withPolicyDefinitions(List<PolicyDefinitionReference> policyDefinitions)

Set the policyDefinitions property: An array of policy definition references.

PolicySetDefinitionVersionInner withPolicyType(PolicyType policyType)

Set the policyType property: The type of policy definition.

PolicySetDefinitionVersionInner withVersion(String version)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PolicySetDefinitionVersionInner

public PolicySetDefinitionVersionInner()

Creates an instance of PolicySetDefinitionVersionInner class.

Method Details

description

public String description()

Get the description property: The policy set definition description.

Returns:

the description value.

displayName

public String displayName()

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

Returns:

the displayName value.

fromJson

public static PolicySetDefinitionVersionInner fromJson(JsonReader jsonReader)

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:

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:

PolicySetDefinitionVersionInner.id()

Returns:

the id value.

metadata

public Object 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PolicySetDefinitionVersionInner.name()

Returns:

the name value.

parameters

public Map<String,ParameterDefinitionsValue> parameters()

Get the parameters property: The policy set definition parameters that can be used in policy definition references.

Returns:

the parameters value.

policyDefinitionGroups

public List<PolicyDefinitionGroup> policyDefinitionGroups()

Get the policyDefinitionGroups property: The metadata describing groups of policy definition references within the policy set definition.

Returns:

the policyDefinitionGroups value.

policyDefinitions

public List<PolicyDefinitionReference> policyDefinitions()

Get the policyDefinitions property: An array of policy definition references.

Returns:

the policyDefinitions 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:

PolicySetDefinitionVersionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PolicySetDefinitionVersionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

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

Returns:

the version value.

withDescription

public PolicySetDefinitionVersionInner withDescription(String description)

Set the description property: The policy set definition description.

Parameters:

description - the description value to set.

Returns:

the PolicySetDefinitionVersionInner object itself.

withDisplayName

public PolicySetDefinitionVersionInner withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the PolicySetDefinitionVersionInner object itself.

withMetadata

public PolicySetDefinitionVersionInner withMetadata(Object metadata)

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.

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.

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.

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.

withPolicyType

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

withVersion

public PolicySetDefinitionVersionInner withVersion(String version)

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

Parameters:

version - the version value to set.

Returns:

the PolicySetDefinitionVersionInner object itself.

Applies to