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

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

import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.eventgrid.models.DomainTopicProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Domain Topic. */
@Immutable
public final class DomainTopicInner extends ProxyResource {
    /*
     * Properties of the Domain Topic.
     */
    @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
    private DomainTopicProperties innerProperties;

    /*
     * The system metadata relating to Domain Topic resource.
     */
    @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
    private SystemData systemData;

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

    /**
     * Get the innerProperties property: Properties of the Domain Topic.
     *
     * @return the innerProperties value.
     */
    private DomainTopicProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the systemData property: The system metadata relating to Domain Topic resource.
     *
     * @return the systemData value.
     */
    public SystemData systemData() {
        return this.systemData;
    }

    /**
     * Get the provisioningState property: Provisioning state of the domain topic.
     *
     * @return the provisioningState value.
     */
    public DomainTopicProvisioningState provisioningState() {
        return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
    }

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