Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.servicebus.implementation; import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient;
Initializes a new instance of the ServiceBusManagementClientImpl class.
/** * Initializes a new instance of the ServiceBusManagementClientImpl class. */
public class ServiceBusManagementClientImpl extends AzureServiceClient {
the AzureClient used for long running operations.
/** the {@link AzureClient} used for long running operations. */
private AzureClient azureClient;
Gets the AzureClient used for long running operations.
Returns:the azure client;
/** * Gets the {@link AzureClient} used for long running operations. * @return the azure client; */
public AzureClient getAzureClient() { return this.azureClient; }
Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
/** Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */
private String subscriptionId;
Gets Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Returns:the subscriptionId value.
/** * Gets Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * * @return the subscriptionId value. */
public String subscriptionId() { return this.subscriptionId; }
Sets Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Params:
  • subscriptionId – the subscriptionId value.
Returns:the service client itself
/** * Sets Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * * @param subscriptionId the subscriptionId value. * @return the service client itself */
public ServiceBusManagementClientImpl withSubscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; }
Client API version.
/** Client API version. */
private String apiVersion;
Gets Client API version.
Returns:the apiVersion value.
/** * Gets Client API version. * * @return the apiVersion value. */
public String apiVersion() { return this.apiVersion; }
Gets or sets the preferred language for the response.
/** Gets or sets the preferred language for the response. */
private String acceptLanguage;
Gets Gets or sets the preferred language for the response.
Returns:the acceptLanguage value.
/** * Gets Gets or sets the preferred language for the response. * * @return the acceptLanguage value. */
public String acceptLanguage() { return this.acceptLanguage; }
Sets Gets or sets the preferred language for the response.
Params:
  • acceptLanguage – the acceptLanguage value.
Returns:the service client itself
/** * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself */
public ServiceBusManagementClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; }
Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
/** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */
private int longRunningOperationRetryTimeout;
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
Returns:the longRunningOperationRetryTimeout value.
/** * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */
public int longRunningOperationRetryTimeout() { return this.longRunningOperationRetryTimeout; }
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
Params:
  • longRunningOperationRetryTimeout – the longRunningOperationRetryTimeout value.
Returns:the service client itself
/** * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself */
public ServiceBusManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; return this; }
When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
/** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
private boolean generateClientRequestId;
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
Returns:the generateClientRequestId value.
/** * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @return the generateClientRequestId value. */
public boolean generateClientRequestId() { return this.generateClientRequestId; }
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
Params:
  • generateClientRequestId – the generateClientRequestId value.
Returns:the service client itself
/** * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself */
public ServiceBusManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; }
The OperationsInner object to access its operations.
/** * The OperationsInner object to access its operations. */
private OperationsInner operations;
Gets the OperationsInner object to access its operations.
Returns:the OperationsInner object.
/** * Gets the OperationsInner object to access its operations. * @return the OperationsInner object. */
public OperationsInner operations() { return this.operations; }
The NamespacesInner object to access its operations.
/** * The NamespacesInner object to access its operations. */
private NamespacesInner namespaces;
Gets the NamespacesInner object to access its operations.
Returns:the NamespacesInner object.
/** * Gets the NamespacesInner object to access its operations. * @return the NamespacesInner object. */
public NamespacesInner namespaces() { return this.namespaces; }
The QueuesInner object to access its operations.
/** * The QueuesInner object to access its operations. */
private QueuesInner queues;
Gets the QueuesInner object to access its operations.
Returns:the QueuesInner object.
/** * Gets the QueuesInner object to access its operations. * @return the QueuesInner object. */
public QueuesInner queues() { return this.queues; }
The TopicsInner object to access its operations.
/** * The TopicsInner object to access its operations. */
private TopicsInner topics;
Gets the TopicsInner object to access its operations.
Returns:the TopicsInner object.
/** * Gets the TopicsInner object to access its operations. * @return the TopicsInner object. */
public TopicsInner topics() { return this.topics; }
The SubscriptionsInner object to access its operations.
/** * The SubscriptionsInner object to access its operations. */
private SubscriptionsInner subscriptions;
Gets the SubscriptionsInner object to access its operations.
Returns:the SubscriptionsInner object.
/** * Gets the SubscriptionsInner object to access its operations. * @return the SubscriptionsInner object. */
public SubscriptionsInner subscriptions() { return this.subscriptions; }
Initializes an instance of ServiceBusManagementClient client.
Params:
  • credentials – the management credentials for Azure
/** * Initializes an instance of ServiceBusManagementClient client. * * @param credentials the management credentials for Azure */
public ServiceBusManagementClientImpl(ServiceClientCredentials credentials) { this("https://management.azure.com", credentials); }
Initializes an instance of ServiceBusManagementClient client.
Params:
  • baseUrl – the base URL of the host
  • credentials – the management credentials for Azure
/** * Initializes an instance of ServiceBusManagementClient client. * * @param baseUrl the base URL of the host * @param credentials the management credentials for Azure */
public ServiceBusManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { super(baseUrl, credentials); initialize(); }
Initializes an instance of ServiceBusManagementClient client.
Params:
  • restClient – the REST client to connect to Azure.
/** * Initializes an instance of ServiceBusManagementClient client. * * @param restClient the REST client to connect to Azure. */
public ServiceBusManagementClientImpl(RestClient restClient) { super(restClient); initialize(); } protected void initialize() { this.apiVersion = "2015-08-01"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; this.operations = new OperationsInner(restClient().retrofit(), this); this.namespaces = new NamespacesInner(restClient().retrofit(), this); this.queues = new QueuesInner(restClient().retrofit(), this); this.topics = new TopicsInner(restClient().retrofit(), this); this.subscriptions = new SubscriptionsInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); }
Gets the User-Agent header for the client.
Returns:the user agent string.
/** * Gets the User-Agent header for the client. * * @return the user agent string. */
@Override public String userAgent() { return String.format("%s (%s, %s)", super.userAgent(), "ServiceBusManagementClient", "2015-08-01"); } }