
com.azure.resourcemanager.eventgrid.models.TopicsConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventgrid Show documentation
Show all versions of azure-resourcemanager-eventgrid Show documentation
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.
// 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.JsonProperty;
import java.util.List;
/**
* Properties of the Topics Configuration.
*/
@Fluent
public final class TopicsConfiguration {
/*
* The hostname for the topics configuration. This is a read-only property.
*/
@JsonProperty(value = "hostname", access = JsonProperty.Access.WRITE_ONLY)
private String hostname;
/*
* List of custom domain configurations for the namespace.
*/
@JsonProperty(value = "customDomains")
private List customDomains;
/**
* Creates an instance of TopicsConfiguration class.
*/
public TopicsConfiguration() {
}
/**
* Get the hostname property: The hostname for the topics configuration. This is a read-only property.
*
* @return the hostname value.
*/
public String hostname() {
return this.hostname;
}
/**
* Get the customDomains property: List of custom domain configurations for the namespace.
*
* @return the customDomains value.
*/
public List customDomains() {
return this.customDomains;
}
/**
* Set the customDomains property: List of custom domain configurations for the namespace.
*
* @param customDomains the customDomains value to set.
* @return the TopicsConfiguration object itself.
*/
public TopicsConfiguration withCustomDomains(List customDomains) {
this.customDomains = customDomains;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (customDomains() != null) {
customDomains().forEach(e -> e.validate());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy