com.microsoft.azure.management.resources.implementation.PolicyDefinitionInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-resources Show documentation
Show all versions of azure-mgmt-resources Show documentation
This package contains Microsoft Azure Resource Management SDK.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.resources.implementation;
import com.microsoft.azure.management.resources.PolicyType;
import com.microsoft.azure.management.resources.PolicyMode;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
/**
* The policy definition.
*/
@JsonFlatten
public class PolicyDefinitionInner {
/**
* The type of policy definition. Possible values are NotSpecified,
* BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn',
* 'Custom'.
*/
@JsonProperty(value = "properties.policyType")
private PolicyType policyType;
/**
* The policy definition mode. Possible values are NotSpecified, Indexed,
* and All. Possible values include: 'NotSpecified', 'Indexed', 'All'.
*/
@JsonProperty(value = "properties.mode")
private PolicyMode mode;
/**
* The display name of the policy definition.
*/
@JsonProperty(value = "properties.displayName")
private String displayName;
/**
* The policy definition description.
*/
@JsonProperty(value = "properties.description")
private String description;
/**
* The policy rule.
*/
@JsonProperty(value = "properties.policyRule")
private Object policyRule;
/**
* The policy definition metadata.
*/
@JsonProperty(value = "properties.metadata")
private Object metadata;
/**
* Required if a parameter is used in policy rule.
*/
@JsonProperty(value = "properties.parameters")
private Object parameters;
/**
* The ID of the policy definition.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/**
* The name of the policy definition.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/**
* Get the type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom'.
*
* @return the policyType value
*/
public PolicyType policyType() {
return this.policyType;
}
/**
* Set the type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom'.
*
* @param policyType the policyType value to set
* @return the PolicyDefinitionInner object itself.
*/
public PolicyDefinitionInner withPolicyType(PolicyType policyType) {
this.policyType = policyType;
return this;
}
/**
* Get the policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', 'All'.
*
* @return the mode value
*/
public PolicyMode mode() {
return this.mode;
}
/**
* Set the policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', 'All'.
*
* @param mode the mode value to set
* @return the PolicyDefinitionInner object itself.
*/
public PolicyDefinitionInner withMode(PolicyMode mode) {
this.mode = mode;
return this;
}
/**
* Get the display name of the policy definition.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}
/**
* Set the display name of the policy definition.
*
* @param displayName the displayName value to set
* @return the PolicyDefinitionInner object itself.
*/
public PolicyDefinitionInner withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Get the policy definition description.
*
* @return the description value
*/
public String description() {
return this.description;
}
/**
* Set the policy definition description.
*
* @param description the description value to set
* @return the PolicyDefinitionInner object itself.
*/
public PolicyDefinitionInner withDescription(String description) {
this.description = description;
return this;
}
/**
* Get the policy rule.
*
* @return the policyRule value
*/
public Object policyRule() {
return this.policyRule;
}
/**
* Set the policy rule.
*
* @param policyRule the policyRule value to set
* @return the PolicyDefinitionInner object itself.
*/
public PolicyDefinitionInner withPolicyRule(Object policyRule) {
this.policyRule = policyRule;
return this;
}
/**
* Get the policy definition metadata.
*
* @return the metadata value
*/
public Object metadata() {
return this.metadata;
}
/**
* Set the policy definition metadata.
*
* @param metadata the metadata value to set
* @return the PolicyDefinitionInner object itself.
*/
public PolicyDefinitionInner withMetadata(Object metadata) {
this.metadata = metadata;
return this;
}
/**
* Get required if a parameter is used in policy rule.
*
* @return the parameters value
*/
public Object parameters() {
return this.parameters;
}
/**
* Set required if a parameter is used in policy rule.
*
* @param parameters the parameters value to set
* @return the PolicyDefinitionInner object itself.
*/
public PolicyDefinitionInner withParameters(Object parameters) {
this.parameters = parameters;
return this;
}
/**
* Get the ID of the policy definition.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Get the name of the policy definition.
*
* @return the name value
*/
public String name() {
return this.name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy