![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.botservice.implementation.AzureBotServiceImpl 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-preview-2021-05.
// 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.implementation;
import com.azure.core.annotation.ServiceClient;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
import com.azure.core.http.rest.Response;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.botservice.fluent.AzureBotService;
import com.azure.resourcemanager.botservice.fluent.BotConnectionsClient;
import com.azure.resourcemanager.botservice.fluent.BotsClient;
import com.azure.resourcemanager.botservice.fluent.ChannelsClient;
import com.azure.resourcemanager.botservice.fluent.DirectLinesClient;
import com.azure.resourcemanager.botservice.fluent.HostSettingsClient;
import com.azure.resourcemanager.botservice.fluent.OperationResultsClient;
import com.azure.resourcemanager.botservice.fluent.OperationsClient;
import com.azure.resourcemanager.botservice.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.botservice.fluent.PrivateLinkResourcesClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.util.Map;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/** Initializes a new instance of the AzureBotServiceImpl type. */
@ServiceClient(builder = AzureBotServiceBuilder.class)
public final class AzureBotServiceImpl implements AzureBotService {
private final ClientLogger logger = new ClientLogger(AzureBotServiceImpl.class);
/** Azure Subscription ID. */
private final String subscriptionId;
/**
* Gets Azure Subscription ID.
*
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
/** server parameter. */
private final String endpoint;
/**
* Gets server parameter.
*
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
/** Api Version. */
private final String apiVersion;
/**
* Gets Api Version.
*
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}
/** The HTTP pipeline to send requests through. */
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
*
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
/** The serializer to serialize an object into a string. */
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
*
* @return the serializerAdapter value.
*/
SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}
/** The default poll interval for long-running operation. */
private final Duration defaultPollInterval;
/**
* Gets The default poll interval for long-running operation.
*
* @return the defaultPollInterval value.
*/
public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
/** The BotsClient object to access its operations. */
private final BotsClient bots;
/**
* Gets the BotsClient object to access its operations.
*
* @return the BotsClient object.
*/
public BotsClient getBots() {
return this.bots;
}
/** The ChannelsClient object to access its operations. */
private final ChannelsClient channels;
/**
* Gets the ChannelsClient object to access its operations.
*
* @return the ChannelsClient object.
*/
public ChannelsClient getChannels() {
return this.channels;
}
/** The DirectLinesClient object to access its operations. */
private final DirectLinesClient directLines;
/**
* Gets the DirectLinesClient object to access its operations.
*
* @return the DirectLinesClient object.
*/
public DirectLinesClient getDirectLines() {
return this.directLines;
}
/** The OperationsClient object to access its operations. */
private final OperationsClient operations;
/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
public OperationsClient getOperations() {
return this.operations;
}
/** The BotConnectionsClient object to access its operations. */
private final BotConnectionsClient botConnections;
/**
* Gets the BotConnectionsClient object to access its operations.
*
* @return the BotConnectionsClient object.
*/
public BotConnectionsClient getBotConnections() {
return this.botConnections;
}
/** The HostSettingsClient object to access its operations. */
private final HostSettingsClient hostSettings;
/**
* Gets the HostSettingsClient object to access its operations.
*
* @return the HostSettingsClient object.
*/
public HostSettingsClient getHostSettings() {
return this.hostSettings;
}
/** The OperationResultsClient object to access its operations. */
private final OperationResultsClient operationResults;
/**
* Gets the OperationResultsClient object to access its operations.
*
* @return the OperationResultsClient object.
*/
public OperationResultsClient getOperationResults() {
return this.operationResults;
}
/** The PrivateEndpointConnectionsClient object to access its operations. */
private final PrivateEndpointConnectionsClient privateEndpointConnections;
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
*
* @return the PrivateEndpointConnectionsClient object.
*/
public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
return this.privateEndpointConnections;
}
/** The PrivateLinkResourcesClient object to access its operations. */
private final PrivateLinkResourcesClient privateLinkResources;
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
*
* @return the PrivateLinkResourcesClient object.
*/
public PrivateLinkResourcesClient getPrivateLinkResources() {
return this.privateLinkResources;
}
/**
* Initializes an instance of AzureBotService client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
* @param subscriptionId Azure Subscription ID.
* @param endpoint server parameter.
*/
AzureBotServiceImpl(
HttpPipeline httpPipeline,
SerializerAdapter serializerAdapter,
Duration defaultPollInterval,
AzureEnvironment environment,
String subscriptionId,
String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2021-05-01-preview";
this.bots = new BotsClientImpl(this);
this.channels = new ChannelsClientImpl(this);
this.directLines = new DirectLinesClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.botConnections = new BotConnectionsClientImpl(this);
this.hostSettings = new HostSettingsClientImpl(this);
this.operationResults = new OperationResultsClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
}
/**
* Gets default client context.
*
* @return the default client context.
*/
public Context getContext() {
return Context.NONE;
}
/**
* Merges default client context with provided context.
*
* @param context the context to be merged with default client context.
* @return the merged context.
*/
public Context mergeContext(Context context) {
for (Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy