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

package com.azure.resourcemanager.apimanagement.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** NamedValue Entity Base Parameters set. */
@Fluent
public class NamedValueEntityBaseParameters {
    /*
     * Optional tags that when provided can be used to filter the NamedValue list.
     */
    @JsonProperty(value = "tags")
    private List<String> tags;

    /*
     * Determines whether the value is a secret and should be encrypted or not. Default value is false.
     */
    @JsonProperty(value = "secret")
    private Boolean secret;

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

    /**
     * Get the tags property: Optional tags that when provided can be used to filter the NamedValue list.
     *
     * @return the tags value.
     */
    public List<String> tags() {
        return this.tags;
    }

    /**
     * Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.
     *
     * @param tags the tags value to set.
     * @return the NamedValueEntityBaseParameters object itself.
     */
    public NamedValueEntityBaseParameters withTags(List<String> tags) {
        this.tags = tags;
        return this;
    }

    /**
     * Get the secret property: Determines whether the value is a secret and should be encrypted or not. Default value
     * is false.
     *
     * @return the secret value.
     */
    public Boolean secret() {
        return this.secret;
    }

    /**
     * Set the secret property: Determines whether the value is a secret and should be encrypted or not. Default value
     * is false.
     *
     * @param secret the secret value to set.
     * @return the NamedValueEntityBaseParameters object itself.
     */
    public NamedValueEntityBaseParameters withSecret(Boolean secret) {
        this.secret = secret;
        return this;
    }

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