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

package com.azure.resourcemanager.security.models;

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

/** Describe the owner source of governance rule. */
@Fluent
public final class GovernanceRuleOwnerSource {
    /*
     * The owner type for the governance rule owner source
     */
    @JsonProperty(value = "type")
    private GovernanceRuleOwnerSourceType type;

    /*
     * The source value e.g. tag key like owner name or email address
     */
    @JsonProperty(value = "value")
    private String value;

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

    /**
     * Get the type property: The owner type for the governance rule owner source.
     *
     * @return the type value.
     */
    public GovernanceRuleOwnerSourceType type() {
        return this.type;
    }

    /**
     * Set the type property: The owner type for the governance rule owner source.
     *
     * @param type the type value to set.
     * @return the GovernanceRuleOwnerSource object itself.
     */
    public GovernanceRuleOwnerSource withType(GovernanceRuleOwnerSourceType type) {
        this.type = type;
        return this;
    }

    /**
     * Get the value property: The source value e.g. tag key like owner name or email address.
     *
     * @return the value value.
     */
    public String value() {
        return this.value;
    }

    /**
     * Set the value property: The source value e.g. tag key like owner name or email address.
     *
     * @param value the value value to set.
     * @return the GovernanceRuleOwnerSource object itself.
     */
    public GovernanceRuleOwnerSource withValue(String value) {
        this.value = value;
        return this;
    }

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