/** * 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.rest.serializer.JsonFlatten; /** * The policy definition. */ @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 ID of the policy assignment. */ @JsonProperty(value = "id") private String id; /** * The type of the policy assignment. */ @JsonProperty(value = "type") private String type; /** * The name of the policy assignment. */ @JsonProperty(value = "name") private String name; /** * 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 id value. * * @return the id value */ public String id() { return this.id; } /** * Set the id value. * * @param id the id value to set * @return the PolicyAssignmentInner object itself. */ public PolicyAssignmentInner withId(String id) { this.id = id; return this; } /** * Get the type value. * * @return the type value */ public String type() { return this.type; } /** * Set the type value. * * @param type the type value to set * @return the PolicyAssignmentInner object itself. */ public PolicyAssignmentInner withType(String type) { this.type = type; return this; } /** * Get the name value. * * @return the name value */ public String name() { return this.name; } /** * Set the name value. * * @param name the name value to set * @return the PolicyAssignmentInner object itself. */ public PolicyAssignmentInner withName(String name) { this.name = name; return this; } }