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

package com.azure.resourcemanager.billing.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.fasterxml.jackson.annotation.JsonProperty;

/** An enrollment account resource. */
@Immutable
public final class EnrollmentAccountSummaryInner extends ProxyResource {
    /*
     * An enrollment account.
     */
    @JsonProperty(value = "properties")
    private EnrollmentAccountSummaryProperties innerProperties;

    /** Creates an instance of EnrollmentAccountSummaryInner class. */
    public EnrollmentAccountSummaryInner() {
    }

    /**
     * Get the innerProperties property: An enrollment account.
     *
     * @return the innerProperties value.
     */
    private EnrollmentAccountSummaryProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the principalName property: The account owner's principal name.
     *
     * @return the principalName value.
     */
    public String principalName() {
        return this.innerProperties() == null ? null : this.innerProperties().principalName();
    }

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