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

com.azure.resourcemanager.eventgrid.models.PartnerTopicUpdateParameters 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.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/**
 * Properties of the Partner Topic update.
 */
@Fluent
public final class PartnerTopicUpdateParameters {
    /*
     * Tags of the Partner Topic resource.
     */
    @JsonProperty(value = "tags")
    @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
    private Map tags;

    /*
     * Identity information for the Partner Topic resource.
     */
    @JsonProperty(value = "identity")
    private IdentityInfo identity;

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

    /**
     * Get the tags property: Tags of the Partner Topic resource.
     * 
     * @return the tags value.
     */
    public Map tags() {
        return this.tags;
    }

    /**
     * Set the tags property: Tags of the Partner Topic resource.
     * 
     * @param tags the tags value to set.
     * @return the PartnerTopicUpdateParameters object itself.
     */
    public PartnerTopicUpdateParameters withTags(Map tags) {
        this.tags = tags;
        return this;
    }

    /**
     * Get the identity property: Identity information for the Partner Topic resource.
     * 
     * @return the identity value.
     */
    public IdentityInfo identity() {
        return this.identity;
    }

    /**
     * Set the identity property: Identity information for the Partner Topic resource.
     * 
     * @param identity the identity value to set.
     * @return the PartnerTopicUpdateParameters object itself.
     */
    public PartnerTopicUpdateParameters withIdentity(IdentityInfo identity) {
        this.identity = identity;
        return this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy