// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.applicationinsights.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentExportRequest;

/** Samples for ExportConfigurations Update. */
public final class ExportConfigurationsUpdateSamples {
    /*
     * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationUpdate.json
     */
    /**
     * Sample code: ExportConfigurationUpdate.
     *
     * @param manager Entry point to ApplicationInsightsManager.
     */
    public static void exportConfigurationUpdate(
        com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
        manager
            .exportConfigurations()
            .updateWithResponse(
                "my-resource-group",
                "my-component",
                "uGOoki0jQsyEs3IdQ83Q4QsNr4=",
                new ApplicationInsightsComponentExportRequest()
                    .withRecordTypes(
                        "Requests, Event, Exceptions, Metrics, PageViews, PageViewPerformance, Rdd,"
                            + " PerformanceCounters, Availability")
                    .withDestinationType("Blob")
                    .withDestinationAddress(
                        "https://mystorageblob.blob.core.windows.net/fchentest?sv=2015-04-05&sr=c&sig=token")
                    .withIsEnabled("true")
                    .withNotificationQueueEnabled("false")
                    .withNotificationQueueUri("")
                    .withDestinationStorageSubscriptionId("subid")
                    .withDestinationStorageLocationId("eastus")
                    .withDestinationAccountId(
                        "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.ClassicStorage/storageAccounts/mystorageblob"),
                Context.NONE);
    }
}
