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

package com.azure.resourcemanager.hdinsight.models;

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

/** The cluster definition. */
@Fluent
public final class ClusterDefinition {
    /*
     * The link to the blueprint.
     */
    @JsonProperty(value = "blueprint")
    private String blueprint;

    /*
     * The type of cluster.
     */
    @JsonProperty(value = "kind")
    private String kind;

    /*
     * The versions of different services in the cluster.
     */
    @JsonProperty(value = "componentVersion")
    @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
    private Map<String, String> componentVersion;

    /*
     * The cluster configurations.
     */
    @JsonProperty(value = "configurations")
    private Object configurations;

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

    /**
     * Get the blueprint property: The link to the blueprint.
     *
     * @return the blueprint value.
     */
    public String blueprint() {
        return this.blueprint;
    }

    /**
     * Set the blueprint property: The link to the blueprint.
     *
     * @param blueprint the blueprint value to set.
     * @return the ClusterDefinition object itself.
     */
    public ClusterDefinition withBlueprint(String blueprint) {
        this.blueprint = blueprint;
        return this;
    }

    /**
     * Get the kind property: The type of cluster.
     *
     * @return the kind value.
     */
    public String kind() {
        return this.kind;
    }

    /**
     * Set the kind property: The type of cluster.
     *
     * @param kind the kind value to set.
     * @return the ClusterDefinition object itself.
     */
    public ClusterDefinition withKind(String kind) {
        this.kind = kind;
        return this;
    }

    /**
     * Get the componentVersion property: The versions of different services in the cluster.
     *
     * @return the componentVersion value.
     */
    public Map<String, String> componentVersion() {
        return this.componentVersion;
    }

    /**
     * Set the componentVersion property: The versions of different services in the cluster.
     *
     * @param componentVersion the componentVersion value to set.
     * @return the ClusterDefinition object itself.
     */
    public ClusterDefinition withComponentVersion(Map<String, String> componentVersion) {
        this.componentVersion = componentVersion;
        return this;
    }

    /**
     * Get the configurations property: The cluster configurations.
     *
     * @return the configurations value.
     */
    public Object configurations() {
        return this.configurations;
    }

    /**
     * Set the configurations property: The cluster configurations.
     *
     * @param configurations the configurations value to set.
     * @return the ClusterDefinition object itself.
     */
    public ClusterDefinition withConfigurations(Object configurations) {
        this.configurations = configurations;
        return this;
    }

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