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

package com.azure.resourcemanager.timeseriesinsights.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.Map;

/** Parameters supplied to the Update Environment operation. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "kind",
    defaultImpl = EnvironmentUpdateParameters.class)
@JsonTypeName("EnvironmentUpdateParameters")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "Gen1", value = Gen1EnvironmentUpdateParameters.class),
    @JsonSubTypes.Type(name = "Gen2", value = Gen2EnvironmentUpdateParameters.class)
})
@Fluent
public class EnvironmentUpdateParameters {
    /*
     * Key-value pairs of additional properties for the environment.
     */
    @JsonProperty(value = "tags")
    @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
    private Map<String, String> tags;

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

    /**
     * Get the tags property: Key-value pairs of additional properties for the environment.
     *
     * @return the tags value.
     */
    public Map<String, String> tags() {
        return this.tags;
    }

    /**
     * Set the tags property: Key-value pairs of additional properties for the environment.
     *
     * @param tags the tags value to set.
     * @return the EnvironmentUpdateParameters object itself.
     */
    public EnvironmentUpdateParameters withTags(Map<String, String> tags) {
        this.tags = tags;
        return this;
    }

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