
com.microsoft.azure.management.resources.implementation.PolicyAssignmentInner Maven / Gradle / Ivy
/**
* 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.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.management.resources.PolicySku;
import com.microsoft.rest.serializer.JsonFlatten;
import java.util.List;
/**
* The policy assignment.
*/
@JsonFlatten
public class PolicyAssignmentInner {
/**
* The display name of the policy assignment.
*/
@JsonProperty(value = "properties.displayName")
private String displayName;
/**
* The ID of the policy definition.
*/
@JsonProperty(value = "properties.policyDefinitionId")
private String policyDefinitionId;
/**
* The scope for the policy assignment.
*/
@JsonProperty(value = "properties.scope")
private String scope;
/**
* The policy's excluded scopes.
*/
@JsonProperty(value = "properties.notScopes")
private List notScopes;
/**
* Required if a parameter is used in policy rule.
*/
@JsonProperty(value = "properties.parameters")
private Object parameters;
/**
* This message will be part of response in case of policy violation.
*/
@JsonProperty(value = "properties.description")
private String description;
/**
* The policy assignment metadata.
*/
@JsonProperty(value = "properties.metadata")
private Object metadata;
/**
* The ID of the policy assignment.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/**
* The type of the policy assignment.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
* The name of the policy assignment.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/**
* The policy sku.
*/
@JsonProperty(value = "sku")
private PolicySku sku;
/**
* Get the displayName value.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}
/**
* Set the displayName value.
*
* @param displayName the displayName value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Get the policyDefinitionId value.
*
* @return the policyDefinitionId value
*/
public String policyDefinitionId() {
return this.policyDefinitionId;
}
/**
* Set the policyDefinitionId value.
*
* @param policyDefinitionId the policyDefinitionId value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withPolicyDefinitionId(String policyDefinitionId) {
this.policyDefinitionId = policyDefinitionId;
return this;
}
/**
* Get the scope value.
*
* @return the scope value
*/
public String scope() {
return this.scope;
}
/**
* Set the scope value.
*
* @param scope the scope value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withScope(String scope) {
this.scope = scope;
return this;
}
/**
* Get the notScopes value.
*
* @return the notScopes value
*/
public List notScopes() {
return this.notScopes;
}
/**
* Set the notScopes value.
*
* @param notScopes the notScopes value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withNotScopes(List notScopes) {
this.notScopes = notScopes;
return this;
}
/**
* Get the parameters value.
*
* @return the parameters value
*/
public Object parameters() {
return this.parameters;
}
/**
* Set the parameters value.
*
* @param parameters the parameters value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withParameters(Object parameters) {
this.parameters = parameters;
return this;
}
/**
* Get the description value.
*
* @return the description value
*/
public String description() {
return this.description;
}
/**
* Set the description value.
*
* @param description the description value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withDescription(String description) {
this.description = description;
return this;
}
/**
* Get the metadata value.
*
* @return the metadata value
*/
public Object metadata() {
return this.metadata;
}
/**
* Set the metadata value.
*
* @param metadata the metadata value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withMetadata(Object metadata) {
this.metadata = metadata;
return this;
}
/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Get the sku value.
*
* @return the sku value
*/
public PolicySku sku() {
return this.sku;
}
/**
* Set the sku value.
*
* @param sku the sku value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withSku(PolicySku sku) {
this.sku = sku;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy