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

package com.azure.resourcemanager.logic.models;

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

/** The integration service environment sku. */
@Fluent
public final class IntegrationServiceEnvironmentSku {
    /*
     * The sku name.
     */
    @JsonProperty(value = "name")
    private IntegrationServiceEnvironmentSkuName name;

    /*
     * The sku capacity.
     */
    @JsonProperty(value = "capacity")
    private Integer capacity;

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

    /**
     * Get the name property: The sku name.
     *
     * @return the name value.
     */
    public IntegrationServiceEnvironmentSkuName name() {
        return this.name;
    }

    /**
     * Set the name property: The sku name.
     *
     * @param name the name value to set.
     * @return the IntegrationServiceEnvironmentSku object itself.
     */
    public IntegrationServiceEnvironmentSku withName(IntegrationServiceEnvironmentSkuName name) {
        this.name = name;
        return this;
    }

    /**
     * Get the capacity property: The sku capacity.
     *
     * @return the capacity value.
     */
    public Integer capacity() {
        return this.capacity;
    }

    /**
     * Set the capacity property: The sku capacity.
     *
     * @param capacity the capacity value to set.
     * @return the IntegrationServiceEnvironmentSku object itself.
     */
    public IntegrationServiceEnvironmentSku withCapacity(Integer capacity) {
        this.capacity = capacity;
        return this;
    }

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