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

com.azure.resourcemanager.eventgrid.fluent.models.CustomDomainOwnershipValidationResultInner 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.resourcemanager.eventgrid.models.CustomDomainConfiguration;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * Namespace custom domain ownership validation result.
 */
@Fluent
public final class CustomDomainOwnershipValidationResultInner {
    /*
     * List of custom domain configurations for the namespace under topics configuration.
     */
    @JsonProperty(value = "customDomainsForTopicsConfiguration")
    private List customDomainsForTopicsConfiguration;

    /*
     * List of custom domain configurations for the namespace under topic spaces configuration.
     */
    @JsonProperty(value = "customDomainsForTopicSpacesConfiguration")
    private List customDomainsForTopicSpacesConfiguration;

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

    /**
     * Get the customDomainsForTopicsConfiguration property: List of custom domain configurations for the namespace
     * under topics configuration.
     * 
     * @return the customDomainsForTopicsConfiguration value.
     */
    public List customDomainsForTopicsConfiguration() {
        return this.customDomainsForTopicsConfiguration;
    }

    /**
     * Set the customDomainsForTopicsConfiguration property: List of custom domain configurations for the namespace
     * under topics configuration.
     * 
     * @param customDomainsForTopicsConfiguration the customDomainsForTopicsConfiguration value to set.
     * @return the CustomDomainOwnershipValidationResultInner object itself.
     */
    public CustomDomainOwnershipValidationResultInner
        withCustomDomainsForTopicsConfiguration(List customDomainsForTopicsConfiguration) {
        this.customDomainsForTopicsConfiguration = customDomainsForTopicsConfiguration;
        return this;
    }

    /**
     * Get the customDomainsForTopicSpacesConfiguration property: List of custom domain configurations for the namespace
     * under topic spaces configuration.
     * 
     * @return the customDomainsForTopicSpacesConfiguration value.
     */
    public List customDomainsForTopicSpacesConfiguration() {
        return this.customDomainsForTopicSpacesConfiguration;
    }

    /**
     * Set the customDomainsForTopicSpacesConfiguration property: List of custom domain configurations for the namespace
     * under topic spaces configuration.
     * 
     * @param customDomainsForTopicSpacesConfiguration the customDomainsForTopicSpacesConfiguration value to set.
     * @return the CustomDomainOwnershipValidationResultInner object itself.
     */
    public CustomDomainOwnershipValidationResultInner withCustomDomainsForTopicSpacesConfiguration(
        List customDomainsForTopicSpacesConfiguration) {
        this.customDomainsForTopicSpacesConfiguration = customDomainsForTopicSpacesConfiguration;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (customDomainsForTopicsConfiguration() != null) {
            customDomainsForTopicsConfiguration().forEach(e -> e.validate());
        }
        if (customDomainsForTopicSpacesConfiguration() != null) {
            customDomainsForTopicSpacesConfiguration().forEach(e -> e.validate());
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy