From d8674c470fa43aad835a50dd8b4287bbc7741d42 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 14 Jan 2019 10:51:47 -0800 Subject: [PATCH] Generated from 9771d96d4a2f4caa435cd59ae81736e910b8ee89 (#2826) Update Python version --- .../management/monitor/DataContainer.java | 43 ++++++ .../azure/management/monitor/DataStatus.java | 41 ++++++ .../azure/management/monitor/Error.java | 69 +++++++++ .../management/monitor/OnboardingStatus.java | 44 ++++++ .../management/monitor/ResponseWithError.java | 43 ++++++ .../monitor/ResponseWithErrorException.java | 44 ++++++ .../management/monitor/WorkspaceInfo.java | 97 +++++++++++++ .../MonitorManagementClientImpl.java | 14 ++ .../implementation/VMInsightsInner.java | 134 +++++++++++++++++ .../VMInsightsOnboardingStatusInner.java | 136 ++++++++++++++++++ 10 files changed, 665 insertions(+) create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataContainer.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataStatus.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Error.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/OnboardingStatus.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithError.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithErrorException.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WorkspaceInfo.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsInner.java create mode 100644 azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsOnboardingStatusInner.java diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataContainer.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataContainer.java new file mode 100644 index 0000000000000..c79165e38dfd1 --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataContainer.java @@ -0,0 +1,43 @@ +/** + * 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.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Information about a container with data for a given resource. + */ +public class DataContainer { + /** + * Log Analytics workspace information. + */ + @JsonProperty(value = "workspace", required = true) + private WorkspaceInfo workspace; + + /** + * Get log Analytics workspace information. + * + * @return the workspace value + */ + public WorkspaceInfo workspace() { + return this.workspace; + } + + /** + * Set log Analytics workspace information. + * + * @param workspace the workspace value to set + * @return the DataContainer object itself. + */ + public DataContainer withWorkspace(WorkspaceInfo workspace) { + this.workspace = workspace; + return this; + } + +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataStatus.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataStatus.java new file mode 100644 index 0000000000000..1f5965037832b --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/DataStatus.java @@ -0,0 +1,41 @@ +/** + * 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.monitor; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DataStatus. + */ +public final class DataStatus extends ExpandableStringEnum { + /** Static value present for DataStatus. */ + public static final DataStatus PRESENT = fromString("present"); + + /** Static value notPresent for DataStatus. */ + public static final DataStatus NOT_PRESENT = fromString("notPresent"); + + /** + * Creates or finds a DataStatus from its string representation. + * @param name a name to look for + * @return the corresponding DataStatus + */ + @JsonCreator + public static DataStatus fromString(String name) { + return fromString(name, DataStatus.class); + } + + /** + * @return known DataStatus values + */ + public static Collection values() { + return values(DataStatus.class); + } +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Error.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Error.java new file mode 100644 index 0000000000000..937ddb38e9b02 --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Error.java @@ -0,0 +1,69 @@ +/** + * 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.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error details. + */ +public class Error { + /** + * Error code identifying the specific error. + */ + @JsonProperty(value = "code", required = true) + private String code; + + /** + * Error message in the caller's locale. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get error code identifying the specific error. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set error code identifying the specific error. + * + * @param code the code value to set + * @return the Error object itself. + */ + public Error withCode(String code) { + this.code = code; + return this; + } + + /** + * Get error message in the caller's locale. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set error message in the caller's locale. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/OnboardingStatus.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/OnboardingStatus.java new file mode 100644 index 0000000000000..617bc5fef59b1 --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/OnboardingStatus.java @@ -0,0 +1,44 @@ +/** + * 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.monitor; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for OnboardingStatus. + */ +public final class OnboardingStatus extends ExpandableStringEnum { + /** Static value onboarded for OnboardingStatus. */ + public static final OnboardingStatus ONBOARDED = fromString("onboarded"); + + /** Static value notOnboarded for OnboardingStatus. */ + public static final OnboardingStatus NOT_ONBOARDED = fromString("notOnboarded"); + + /** Static value unknown for OnboardingStatus. */ + public static final OnboardingStatus UNKNOWN = fromString("unknown"); + + /** + * Creates or finds a OnboardingStatus from its string representation. + * @param name a name to look for + * @return the corresponding OnboardingStatus + */ + @JsonCreator + public static OnboardingStatus fromString(String name) { + return fromString(name, OnboardingStatus.class); + } + + /** + * @return known OnboardingStatus values + */ + public static Collection values() { + return values(OnboardingStatus.class); + } +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithError.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithError.java new file mode 100644 index 0000000000000..fc4db35cc1009 --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithError.java @@ -0,0 +1,43 @@ +/** + * 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.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An error response from the API. + */ +public class ResponseWithError { + /** + * Error information. + */ + @JsonProperty(value = "error", required = true) + private Error error; + + /** + * Get error information. + * + * @return the error value + */ + public Error error() { + return this.error; + } + + /** + * Set error information. + * + * @param error the error value to set + * @return the ResponseWithError object itself. + */ + public ResponseWithError withError(Error error) { + this.error = error; + return this; + } + +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithErrorException.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithErrorException.java new file mode 100644 index 0000000000000..722bfb65b82c5 --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ResponseWithErrorException.java @@ -0,0 +1,44 @@ +/** + * 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.monitor; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ResponseWithError information. + */ +public class ResponseWithErrorException extends RestException { + /** + * Initializes a new instance of the ResponseWithErrorException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ResponseWithErrorException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ResponseWithErrorException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ResponseWithErrorException(final String message, final Response response, final ResponseWithError body) { + super(message, response, body); + } + + @Override + public ResponseWithError body() { + return (ResponseWithError) super.body(); + } +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WorkspaceInfo.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WorkspaceInfo.java new file mode 100644 index 0000000000000..d8891073bfca2 --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WorkspaceInfo.java @@ -0,0 +1,97 @@ +/** + * 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.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Information about a Log Analytics Workspace. + */ +@JsonFlatten +public class WorkspaceInfo { + /** + * Azure Resource Manager identifier of the Log Analytics Workspace. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * Location of the Log Analytics workspace. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * Log Analytics workspace identifier. + */ + @JsonProperty(value = "properties.customerId", required = true) + private String customerId; + + /** + * Get azure Resource Manager identifier of the Log Analytics Workspace. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set azure Resource Manager identifier of the Log Analytics Workspace. + * + * @param id the id value to set + * @return the WorkspaceInfo object itself. + */ + public WorkspaceInfo withId(String id) { + this.id = id; + return this; + } + + /** + * Get location of the Log Analytics workspace. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set location of the Log Analytics workspace. + * + * @param location the location value to set + * @return the WorkspaceInfo object itself. + */ + public WorkspaceInfo withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get log Analytics workspace identifier. + * + * @return the customerId value + */ + public String customerId() { + return this.customerId; + } + + /** + * Set log Analytics workspace identifier. + * + * @param customerId the customerId value to set + * @return the WorkspaceInfo object itself. + */ + public WorkspaceInfo withCustomerId(String customerId) { + this.customerId = customerId; + return this; + } + +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MonitorManagementClientImpl.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MonitorManagementClientImpl.java index f208c0ac84b0c..3cc6bc951d862 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MonitorManagementClientImpl.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MonitorManagementClientImpl.java @@ -367,6 +367,19 @@ public MetricNamespacesInner metricNamespaces() { return this.metricNamespaces; } + /** + * The VMInsightsInner object to access its operations. + */ + private VMInsightsInner vMInsights; + + /** + * Gets the VMInsightsInner object to access its operations. + * @return the VMInsightsInner object. + */ + public VMInsightsInner vMInsights() { + return this.vMInsights; + } + /** * Initializes an instance of MonitorManagementClient client. * @@ -420,6 +433,7 @@ protected void initialize() { this.metricAlertsStatus = new MetricAlertsStatusInner(restClient().retrofit(), this); this.scheduledQueryRules = new ScheduledQueryRulesInner(restClient().retrofit(), this); this.metricNamespaces = new MetricNamespacesInner(restClient().retrofit(), this); + this.vMInsights = new VMInsightsInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsInner.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsInner.java new file mode 100644 index 0000000000000..36e2e1eb6085f --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsInner.java @@ -0,0 +1,134 @@ +/** + * 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.monitor.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.monitor.ResponseWithErrorException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VMInsights. + */ +public class VMInsightsInner { + /** The Retrofit service to perform REST calls. */ + private VMInsightsService service; + /** The service client containing this operation class. */ + private MonitorManagementClientImpl client; + + /** + * Initializes an instance of VMInsightsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VMInsightsInner(Retrofit retrofit, MonitorManagementClientImpl client) { + this.service = retrofit.create(VMInsightsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VMInsights to be + * used by Retrofit to perform actually REST calls. + */ + interface VMInsightsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.monitor.VMInsights getOnboardingStatus" }) + @GET("{resourceUri}/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default") + Observable> getOnboardingStatus(@Path(value = "resourceUri", encoded = true) String resourceUri, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the VM Insights onboarding status for the specified resource or resource scope. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource, or scope, whose status to retrieve. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ResponseWithErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VMInsightsOnboardingStatusInner object if successful. + */ + public VMInsightsOnboardingStatusInner getOnboardingStatus(String resourceUri) { + return getOnboardingStatusWithServiceResponseAsync(resourceUri).toBlocking().single().body(); + } + + /** + * Retrieves the VM Insights onboarding status for the specified resource or resource scope. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource, or scope, whose status to retrieve. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getOnboardingStatusAsync(String resourceUri, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getOnboardingStatusWithServiceResponseAsync(resourceUri), serviceCallback); + } + + /** + * Retrieves the VM Insights onboarding status for the specified resource or resource scope. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource, or scope, whose status to retrieve. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VMInsightsOnboardingStatusInner object + */ + public Observable getOnboardingStatusAsync(String resourceUri) { + return getOnboardingStatusWithServiceResponseAsync(resourceUri).map(new Func1, VMInsightsOnboardingStatusInner>() { + @Override + public VMInsightsOnboardingStatusInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the VM Insights onboarding status for the specified resource or resource scope. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource, or scope, whose status to retrieve. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VMInsightsOnboardingStatusInner object + */ + public Observable> getOnboardingStatusWithServiceResponseAsync(String resourceUri) { + if (resourceUri == null) { + throw new IllegalArgumentException("Parameter resourceUri is required and cannot be null."); + } + final String apiVersion = "2018-11-27-preview"; + return service.getOnboardingStatus(resourceUri, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getOnboardingStatusDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getOnboardingStatusDelegate(Response response) throws ResponseWithErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ResponseWithErrorException.class) + .build(response); + } + +} diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsOnboardingStatusInner.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsOnboardingStatusInner.java new file mode 100644 index 0000000000000..86168840b824f --- /dev/null +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/VMInsightsOnboardingStatusInner.java @@ -0,0 +1,136 @@ +/** + * 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.monitor.implementation; + +import com.microsoft.azure.management.monitor.OnboardingStatus; +import com.microsoft.azure.management.monitor.DataStatus; +import java.util.List; +import com.microsoft.azure.management.monitor.DataContainer; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.ProxyResource; + +/** + * VM Insights onboarding status for a resource. + */ +@JsonFlatten +public class VMInsightsOnboardingStatusInner extends ProxyResource { + /** + * Azure Resource Manager identifier of the resource whose onboarding + * status is being represented. + */ + @JsonProperty(value = "properties.resourceId", required = true) + private String resourceId; + + /** + * The onboarding status for the resource. Note that, a higher level scope, + * e.g., resource group or subscription, is considered onboarded if at + * least one resource under it is onboarded. Possible values include: + * 'onboarded', 'notOnboarded', 'unknown'. + */ + @JsonProperty(value = "properties.onboardingStatus", required = true) + private OnboardingStatus onboardingStatus; + + /** + * The status of VM Insights data from the resource. When reported as + * `present` the data array will contain information about the data + * containers to which data for the specified resource is being routed. + * Possible values include: 'present', 'notPresent'. + */ + @JsonProperty(value = "properties.dataStatus", required = true) + private DataStatus dataStatus; + + /** + * Containers that currently store VM Insights data for the specified + * resource. + */ + @JsonProperty(value = "properties.data") + private List data; + + /** + * Get azure Resource Manager identifier of the resource whose onboarding status is being represented. + * + * @return the resourceId value + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Set azure Resource Manager identifier of the resource whose onboarding status is being represented. + * + * @param resourceId the resourceId value to set + * @return the VMInsightsOnboardingStatusInner object itself. + */ + public VMInsightsOnboardingStatusInner withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get the onboarding status for the resource. Note that, a higher level scope, e.g., resource group or subscription, is considered onboarded if at least one resource under it is onboarded. Possible values include: 'onboarded', 'notOnboarded', 'unknown'. + * + * @return the onboardingStatus value + */ + public OnboardingStatus onboardingStatus() { + return this.onboardingStatus; + } + + /** + * Set the onboarding status for the resource. Note that, a higher level scope, e.g., resource group or subscription, is considered onboarded if at least one resource under it is onboarded. Possible values include: 'onboarded', 'notOnboarded', 'unknown'. + * + * @param onboardingStatus the onboardingStatus value to set + * @return the VMInsightsOnboardingStatusInner object itself. + */ + public VMInsightsOnboardingStatusInner withOnboardingStatus(OnboardingStatus onboardingStatus) { + this.onboardingStatus = onboardingStatus; + return this; + } + + /** + * Get the status of VM Insights data from the resource. When reported as `present` the data array will contain information about the data containers to which data for the specified resource is being routed. Possible values include: 'present', 'notPresent'. + * + * @return the dataStatus value + */ + public DataStatus dataStatus() { + return this.dataStatus; + } + + /** + * Set the status of VM Insights data from the resource. When reported as `present` the data array will contain information about the data containers to which data for the specified resource is being routed. Possible values include: 'present', 'notPresent'. + * + * @param dataStatus the dataStatus value to set + * @return the VMInsightsOnboardingStatusInner object itself. + */ + public VMInsightsOnboardingStatusInner withDataStatus(DataStatus dataStatus) { + this.dataStatus = dataStatus; + return this; + } + + /** + * Get containers that currently store VM Insights data for the specified resource. + * + * @return the data value + */ + public List data() { + return this.data; + } + + /** + * Set containers that currently store VM Insights data for the specified resource. + * + * @param data the data value to set + * @return the VMInsightsOnboardingStatusInner object itself. + */ + public VMInsightsOnboardingStatusInner withData(List data) { + this.data = data; + return this; + } + +}