// 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.Fluent;
import com.azure.resourcemanager.eventgrid.models.ResourceRegionType;
import com.azure.resourcemanager.eventgrid.models.TopicTypeProvisioningState;
import com.azure.resourcemanager.eventgrid.models.TopicTypeSourceScope;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Properties of a topic type. */
@Fluent
public final class TopicTypeProperties {
    /*
     * Namespace of the provider of the topic type.
     */
    @JsonProperty(value = "provider")
    private String provider;

    /*
     * Display Name for the topic type.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * Description of the topic type.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Region type of the resource.
     */
    @JsonProperty(value = "resourceRegionType")
    private ResourceRegionType resourceRegionType;

    /*
     * Provisioning state of the topic type
     */
    @JsonProperty(value = "provisioningState")
    private TopicTypeProvisioningState provisioningState;

    /*
     * List of locations supported by this topic type.
     */
    @JsonProperty(value = "supportedLocations")
    private List<String> supportedLocations;

    /*
     * Source resource format.
     */
    @JsonProperty(value = "sourceResourceFormat")
    private String sourceResourceFormat;

    /*
     * Supported source scopes.
     */
    @JsonProperty(value = "supportedScopesForSource")
    private List<TopicTypeSourceScope> supportedScopesForSource;

    /*
     * Flag to indicate that a topic type can support both regional or global system topics
     */
    @JsonProperty(value = "areRegionalAndGlobalSourcesSupported")
    private Boolean areRegionalAndGlobalSourcesSupported;

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

    /**
     * Get the provider property: Namespace of the provider of the topic type.
     *
     * @return the provider value.
     */
    public String provider() {
        return this.provider;
    }

    /**
     * Set the provider property: Namespace of the provider of the topic type.
     *
     * @param provider the provider value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withProvider(String provider) {
        this.provider = provider;
        return this;
    }

    /**
     * Get the displayName property: Display Name for the topic type.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: Display Name for the topic type.
     *
     * @param displayName the displayName value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the description property: Description of the topic type.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Description of the topic type.
     *
     * @param description the description value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the resourceRegionType property: Region type of the resource.
     *
     * @return the resourceRegionType value.
     */
    public ResourceRegionType resourceRegionType() {
        return this.resourceRegionType;
    }

    /**
     * Set the resourceRegionType property: Region type of the resource.
     *
     * @param resourceRegionType the resourceRegionType value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withResourceRegionType(ResourceRegionType resourceRegionType) {
        this.resourceRegionType = resourceRegionType;
        return this;
    }

    /**
     * Get the provisioningState property: Provisioning state of the topic type.
     *
     * @return the provisioningState value.
     */
    public TopicTypeProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /**
     * Set the provisioningState property: Provisioning state of the topic type.
     *
     * @param provisioningState the provisioningState value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withProvisioningState(TopicTypeProvisioningState provisioningState) {
        this.provisioningState = provisioningState;
        return this;
    }

    /**
     * Get the supportedLocations property: List of locations supported by this topic type.
     *
     * @return the supportedLocations value.
     */
    public List<String> supportedLocations() {
        return this.supportedLocations;
    }

    /**
     * Set the supportedLocations property: List of locations supported by this topic type.
     *
     * @param supportedLocations the supportedLocations value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withSupportedLocations(List<String> supportedLocations) {
        this.supportedLocations = supportedLocations;
        return this;
    }

    /**
     * Get the sourceResourceFormat property: Source resource format.
     *
     * @return the sourceResourceFormat value.
     */
    public String sourceResourceFormat() {
        return this.sourceResourceFormat;
    }

    /**
     * Set the sourceResourceFormat property: Source resource format.
     *
     * @param sourceResourceFormat the sourceResourceFormat value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withSourceResourceFormat(String sourceResourceFormat) {
        this.sourceResourceFormat = sourceResourceFormat;
        return this;
    }

    /**
     * Get the supportedScopesForSource property: Supported source scopes.
     *
     * @return the supportedScopesForSource value.
     */
    public List<TopicTypeSourceScope> supportedScopesForSource() {
        return this.supportedScopesForSource;
    }

    /**
     * Set the supportedScopesForSource property: Supported source scopes.
     *
     * @param supportedScopesForSource the supportedScopesForSource value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withSupportedScopesForSource(List<TopicTypeSourceScope> supportedScopesForSource) {
        this.supportedScopesForSource = supportedScopesForSource;
        return this;
    }

    /**
     * Get the areRegionalAndGlobalSourcesSupported property: Flag to indicate that a topic type can support both
     * regional or global system topics.
     *
     * @return the areRegionalAndGlobalSourcesSupported value.
     */
    public Boolean areRegionalAndGlobalSourcesSupported() {
        return this.areRegionalAndGlobalSourcesSupported;
    }

    /**
     * Set the areRegionalAndGlobalSourcesSupported property: Flag to indicate that a topic type can support both
     * regional or global system topics.
     *
     * @param areRegionalAndGlobalSourcesSupported the areRegionalAndGlobalSourcesSupported value to set.
     * @return the TopicTypeProperties object itself.
     */
    public TopicTypeProperties withAreRegionalAndGlobalSourcesSupported(Boolean areRegionalAndGlobalSourcesSupported) {
        this.areRegionalAndGlobalSourcesSupported = areRegionalAndGlobalSourcesSupported;
        return this;
    }

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