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

package com.azure.resourcemanager.purview.generated;

import com.azure.resourcemanager.purview.fluent.models.DefaultAccountPayloadInner;
import com.azure.resourcemanager.purview.models.ScopeType;

/** Samples for DefaultAccounts Set. */
public final class DefaultAccountsSetSamples {
    /*
     * x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Set.json
     */
    /**
     * Sample code: DefaultAccounts_Set.
     *
     * @param manager Entry point to PurviewManager.
     */
    public static void defaultAccountsSet(com.azure.resourcemanager.purview.PurviewManager manager) {
        manager
            .defaultAccounts()
            .setWithResponse(
                new DefaultAccountPayloadInner()
                    .withAccountName("myDefaultAccount")
                    .withResourceGroupName("rg-1")
                    .withScope("11733A4E-BA84-46FF-91D1-AFF1A3215A90")
                    .withScopeTenantId("11733A4E-BA84-46FF-91D1-AFF1A3215A90")
                    .withScopeType(ScopeType.TENANT)
                    .withSubscriptionId("12345678-1234-1234-12345678aaa"),
                com.azure.core.util.Context.NONE);
    }
}
