
com.azure.resourcemanager.eventgrid.fluent.models.NamespaceUpdateParameterProperties 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.eventgrid.models.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.UpdateTopicsConfigurationInfo;
import com.azure.resourcemanager.eventgrid.models.UpdateTopicSpacesConfigurationInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Information of namespace update parameter properties.
*/
@Fluent
public final class NamespaceUpdateParameterProperties {
/*
* Topic spaces configuration properties that can be updated.
*/
@JsonProperty(value = "topicSpacesConfiguration")
private UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration;
/*
* Topics configuration properties that can be updated.
*/
@JsonProperty(value = "topicsConfiguration")
private UpdateTopicsConfigurationInfo topicsConfiguration;
/*
* This determines if traffic is allowed over public network. By default it is enabled.
* You can further restrict to specific IPs by configuring
*/
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
* This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
*/
@JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/**
* Creates an instance of NamespaceUpdateParameterProperties class.
*/
public NamespaceUpdateParameterProperties() {
}
/**
* Get the topicSpacesConfiguration property: Topic spaces configuration properties that can be updated.
*
* @return the topicSpacesConfiguration value.
*/
public UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration() {
return this.topicSpacesConfiguration;
}
/**
* Set the topicSpacesConfiguration property: Topic spaces configuration properties that can be updated.
*
* @param topicSpacesConfiguration the topicSpacesConfiguration value to set.
* @return the NamespaceUpdateParameterProperties object itself.
*/
public NamespaceUpdateParameterProperties
withTopicSpacesConfiguration(UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration) {
this.topicSpacesConfiguration = topicSpacesConfiguration;
return this;
}
/**
* Get the topicsConfiguration property: Topics configuration properties that can be updated.
*
* @return the topicsConfiguration value.
*/
public UpdateTopicsConfigurationInfo topicsConfiguration() {
return this.topicsConfiguration;
}
/**
* Set the topicsConfiguration property: Topics configuration properties that can be updated.
*
* @param topicsConfiguration the topicsConfiguration value to set.
* @return the NamespaceUpdateParameterProperties object itself.
*/
public NamespaceUpdateParameterProperties
withTopicsConfiguration(UpdateTopicsConfigurationInfo topicsConfiguration) {
this.topicsConfiguration = topicsConfiguration;
return this;
}
/**
* Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
* enabled.
* You can further restrict to specific IPs by configuring <seealso
* cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceUpdateParameterProperties.InboundIpRules"
* />.
*
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
return this.publicNetworkAccess;
}
/**
* Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
* enabled.
* You can further restrict to specific IPs by configuring <seealso
* cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceUpdateParameterProperties.InboundIpRules"
* />.
*
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the NamespaceUpdateParameterProperties object itself.
*/
public NamespaceUpdateParameterProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}
/**
* Get the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs. Note:
* These are considered only if PublicNetworkAccess is enabled.
*
* @return the inboundIpRules value.
*/
public List inboundIpRules() {
return this.inboundIpRules;
}
/**
* Set the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs. Note:
* These are considered only if PublicNetworkAccess is enabled.
*
* @param inboundIpRules the inboundIpRules value to set.
* @return the NamespaceUpdateParameterProperties object itself.
*/
public NamespaceUpdateParameterProperties withInboundIpRules(List inboundIpRules) {
this.inboundIpRules = inboundIpRules;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (topicSpacesConfiguration() != null) {
topicSpacesConfiguration().validate();
}
if (topicsConfiguration() != null) {
topicsConfiguration().validate();
}
if (inboundIpRules() != null) {
inboundIpRules().forEach(e -> e.validate());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy