com.azure.resourcemanager.botservice.fluent.models.BotInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-botservice Show documentation
Show all versions of azure-resourcemanager-botservice Show documentation
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.
// 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();
}
}
}