All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.botservice.fluent.models.BotInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for BotService Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Bot Service is a platform for creating smart conversational agents. Package tag package-2021-03-01.

There is a newer version: 1.0.0-beta.6
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.botservice.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.botservice.models.BotProperties;
import com.azure.resourcemanager.botservice.models.Kind;
import com.azure.resourcemanager.botservice.models.Sku;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Bot resource definition. */
@Fluent
public final class BotInner extends Resource {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(BotInner.class);

    /*
     * The set of properties specific to bot resource
     */
    @JsonProperty(value = "properties")
    private BotProperties properties;

    /*
     * Gets or sets the SKU of the resource.
     */
    @JsonProperty(value = "sku")
    private Sku sku;

    /*
     * Required. Gets or sets the Kind of the resource.
     */
    @JsonProperty(value = "kind")
    private Kind kind;

    /*
     * Entity Tag
     */
    @JsonProperty(value = "etag")
    private String etag;

    /**
     * Get the properties property: The set of properties specific to bot resource.
     *
     * @return the properties value.
     */
    public BotProperties properties() {
        return this.properties;
    }

    /**
     * Set the properties property: The set of properties specific to bot resource.
     *
     * @param properties the properties value to set.
     * @return the BotInner object itself.
     */
    public BotInner withProperties(BotProperties properties) {
        this.properties = properties;
        return this;
    }

    /**
     * Get the sku property: Gets or sets the SKU of the resource.
     *
     * @return the sku value.
     */
    public Sku sku() {
        return this.sku;
    }

    /**
     * Set the sku property: Gets or sets the SKU of the resource.
     *
     * @param sku the sku value to set.
     * @return the BotInner object itself.
     */
    public BotInner withSku(Sku sku) {
        this.sku = sku;
        return this;
    }

    /**
     * Get the kind property: Required. Gets or sets the Kind of the resource.
     *
     * @return the kind value.
     */
    public Kind kind() {
        return this.kind;
    }

    /**
     * Set the kind property: Required. Gets or sets the Kind of the resource.
     *
     * @param kind the kind value to set.
     * @return the BotInner object itself.
     */
    public BotInner withKind(Kind kind) {
        this.kind = kind;
        return this;
    }

    /**
     * Get the etag property: Entity Tag.
     *
     * @return the etag value.
     */
    public String etag() {
        return this.etag;
    }

    /**
     * Set the etag property: Entity Tag.
     *
     * @param etag the etag value to set.
     * @return the BotInner object itself.
     */
    public BotInner withEtag(String etag) {
        this.etag = etag;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public BotInner withLocation(String location) {
        super.withLocation(location);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public BotInner withTags(Map tags) {
        super.withTags(tags);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (properties() != null) {
            properties().validate();
        }
        if (sku() != null) {
            sku().validate();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy