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

package com.azure.analytics.purview.catalog.generated;

import com.azure.analytics.purview.catalog.EntityClient;
import com.azure.analytics.purview.catalog.EntityClientBuilder;
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.http.rest.Response;
import com.azure.core.util.BinaryData;
import com.azure.identity.DefaultAzureCredentialBuilder;

public class EntityAddClassificationToEntityByGuids {
    public static void main(String[] args) {
        EntityClient entityClient =
                new EntityClientBuilder()
                        .credential(new DefaultAzureCredentialBuilder().build())
                        .endpoint("{Endpoint}")
                        .buildClient();
        // BEGIN:com.azure.analytics.purview.catalog.generated.entityaddclassification.entityaddclassificationtoentitybyguids
        BinaryData request =
                BinaryData.fromString(
                        "{\"classification\":{\"attributes\":{},\"typeName\":\"MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER\",\"validityPeriods\":[]},\"entityGuids\":[\"784c0f2f-afd2-e26b-f9cb-984f6c2c5021\",\"b4ebc8be-cef4-860a-bee9-28cc34cb5caa\"]}");
        RequestOptions requestOptions = new RequestOptions();
        Response<Void> response = entityClient.addClassificationWithResponse(request, requestOptions);
        // END:com.azure.analytics.purview.catalog.generated.entityaddclassification.entityaddclassificationtoentitybyguids
    }
}
