// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.devcenter.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** A role that can be assigned to a user. */
@Immutable
public final class EnvironmentRole {
    /*
     * The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.
     */
    @JsonProperty(value = "roleName", access = JsonProperty.Access.WRITE_ONLY)
    private String roleName;

    /*
     * This is a description of the Role Assignment.
     */
    @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
    private String description;

    /** Creates an instance of EnvironmentRole class. */
    public EnvironmentRole() {
    }

    /**
     * Get the roleName property: The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.
     *
     * @return the roleName value.
     */
    public String roleName() {
        return this.roleName;
    }

    /**
     * Get the description property: This is a description of the Role Assignment.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
