// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** These properties are used to create the Azure AD B2C tenant. These properties are not part of the Azure resource. */
@Fluent
public final class CreateTenantProperties {
    /*
     * The display name of the Azure AD B2C tenant.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * Country code of Azure tenant (e.g. 'US'). Refer to
     * [aka.ms/B2CDataResidency](https://aka.ms/B2CDataResidency) to see valid
     * country codes and corresponding data residency locations. If you do not
     * see a country code in an valid data residency location, choose one from
     * the list.
     */
    @JsonProperty(value = "countryCode")
    private String countryCode;

    /**
     * Get the displayName property: The display name of the Azure AD B2C tenant.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: The display name of the Azure AD B2C tenant.
     *
     * @param displayName the displayName value to set.
     * @return the CreateTenantProperties object itself.
     */
    public CreateTenantProperties withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the countryCode property: Country code of Azure tenant (e.g. 'US'). Refer to
     * [aka.ms/B2CDataResidency](https://aka.ms/B2CDataResidency) to see valid country codes and corresponding data
     * residency locations. If you do not see a country code in an valid data residency location, choose one from the
     * list.
     *
     * @return the countryCode value.
     */
    public String countryCode() {
        return this.countryCode;
    }

    /**
     * Set the countryCode property: Country code of Azure tenant (e.g. 'US'). Refer to
     * [aka.ms/B2CDataResidency](https://aka.ms/B2CDataResidency) to see valid country codes and corresponding data
     * residency locations. If you do not see a country code in an valid data residency location, choose one from the
     * list.
     *
     * @param countryCode the countryCode value to set.
     * @return the CreateTenantProperties object itself.
     */
    public CreateTenantProperties withCountryCode(String countryCode) {
        this.countryCode = countryCode;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
