PolicyDefinitionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. resources. fluent. models. PolicyDefinitionInner
- com.
- com.
public final class PolicyDefinitionInner
extends ProxyResource
The policy definition.
Constructor Summary
Constructor | Description |
---|---|
PolicyDefinitionInner() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: The policy definition description. |
String |
displayName()
Get the display |
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
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,Parameter |
parameters()
Get the parameters property: The parameter definitions for parameters used in the policy rule. |
Object |
policyRule()
Get the policy |
Policy |
policyType()
Get the policy |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Policy |
withDescription(String description)
Set the description property: The policy definition description. |
Policy |
withDisplayName(String displayName)
Set the display |
Policy |
withMetadata(Object metadata)
Set the metadata property: The policy definition metadata. |
Policy |
withMode(String mode)
Set the mode property: The policy definition mode. |
Policy |
withParameters(Map<String,ParameterDefinitionsValue> parameters)
Set the parameters property: The parameter definitions for parameters used in the policy rule. |
Policy |
withPolicyRule(Object policyRule)
Set the policy |
Policy |
withPolicyType(PolicyType policyType)
Set the policy |
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:
displayName
public String displayName()
Get the displayName property: The display name of the policy definition.
Returns:
fromJson
public static PolicyDefinitionInner fromJson(JsonReader jsonReader)
Reads an instance of PolicyDefinitionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
PolicyDefinitionInner.id()Returns:
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:
mode
public String mode()
Get the mode property: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
PolicyDefinitionInner.name()Returns:
parameters
public Map
Get the parameters property: The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
Returns:
policyRule
public Object policyRule()
Get the policyRule property: The policy rule.
Returns:
policyType
public PolicyType policyType()
Get the policyType property: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
Returns:
systemData
public SystemData systemData()
Get the systemData property: The system metadata relating to this resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PolicyDefinitionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
PolicyDefinitionInner.type()Returns:
validate
public void validate()
Validates the instance.
withDescription
public PolicyDefinitionInner withDescription(String description)
Set the description property: The policy definition description.
Parameters:
Returns:
withDisplayName
public PolicyDefinitionInner withDisplayName(String displayName)
Set the displayName property: The display name of the policy definition.
Parameters:
Returns:
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:
Returns:
withMode
public PolicyDefinitionInner withMode(String mode)
Set the mode property: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
Parameters:
Returns:
withParameters
public PolicyDefinitionInner withParameters(Map
Set the parameters property: The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
Parameters:
Returns:
withPolicyRule
public PolicyDefinitionInner withPolicyRule(Object policyRule)
Set the policyRule property: The policy rule.
Parameters:
Returns:
withPolicyType
public PolicyDefinitionInner withPolicyType(PolicyType policyType)
Set the policyType property: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
Parameters:
Returns:
Applies to
Azure SDK for Java