All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.eventgrid.fluent.models.ExtensionTopicInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2021-10-preview.

There is a newer version: 1.2.0-beta.7
Show newest version
// 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.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Event grid Extension Topic. This is used for getting Event Grid related metrics for Azure resources.
 */
@Fluent
public final class ExtensionTopicInner extends ProxyResource {
    /*
     * Properties of the extension topic.
     */
    @JsonProperty(value = "properties")
    private ExtensionTopicProperties innerProperties;

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

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

    /**
     * Get the innerProperties property: Properties of the extension topic.
     * 
     * @return the innerProperties value.
     */
    private ExtensionTopicProperties innerProperties() {
        return this.innerProperties;
    }

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

    /**
     * Get the description property: Description of the extension topic.
     * 
     * @return the description value.
     */
    public String description() {
        return this.innerProperties() == null ? null : this.innerProperties().description();
    }

    /**
     * Set the description property: Description of the extension topic.
     * 
     * @param description the description value to set.
     * @return the ExtensionTopicInner object itself.
     */
    public ExtensionTopicInner withDescription(String description) {
        if (this.innerProperties() == null) {
            this.innerProperties = new ExtensionTopicProperties();
        }
        this.innerProperties().withDescription(description);
        return this;
    }

    /**
     * Get the systemTopic property: System topic resource id which is mapped to the source.
     * 
     * @return the systemTopic value.
     */
    public String systemTopic() {
        return this.innerProperties() == null ? null : this.innerProperties().systemTopic();
    }

    /**
     * Set the systemTopic property: System topic resource id which is mapped to the source.
     * 
     * @param systemTopic the systemTopic value to set.
     * @return the ExtensionTopicInner object itself.
     */
    public ExtensionTopicInner withSystemTopic(String systemTopic) {
        if (this.innerProperties() == null) {
            this.innerProperties = new ExtensionTopicProperties();
        }
        this.innerProperties().withSystemTopic(systemTopic);
        return this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy