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

package com.azure.resourcemanager.azureadexternalidentities.generated;

import com.azure.resourcemanager.azureadexternalidentities.models.B2CResourceSku;
import com.azure.resourcemanager.azureadexternalidentities.models.B2CResourceSkuName;
import com.azure.resourcemanager.azureadexternalidentities.models.B2CResourceSkuTier;

/** Samples for B2CTenants Create. */
public final class B2CTenantsCreateSamples {
    /*
     * x-ms-original-file: specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/createTenant.json
     */
    /**
     * Sample code: Create tenant.
     *
     * @param manager Entry point to ExternalIdentitiesConfigurationManager.
     */
    public static void createTenant(
        com.azure.resourcemanager.azureadexternalidentities.ExternalIdentitiesConfigurationManager manager) {
        manager
            .b2CTenants()
            .define("contoso.onmicrosoft.com")
            .withRegion("United States")
            .withExistingResourceGroup("contosoResourceGroup")
            .withSku(new B2CResourceSku().withName(B2CResourceSkuName.STANDARD).withTier(B2CResourceSkuTier.A0))
            .withDisplayName("Contoso")
            .withCountryCode("US")
            .create();
    }
}
