
com.azure.resourcemanager.eventgrid.models.TopicUpdateParameters 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.azure.resourcemanager.eventgrid.fluent.models.TopicUpdateParameterProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/**
* Properties of the Topic update.
*/
@Fluent
public final class TopicUpdateParameters {
/*
* Tags of the Topic resource.
*/
@JsonProperty(value = "tags")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
* Topic resource identity information.
*/
@JsonProperty(value = "identity")
private IdentityInfo identity;
/*
* Properties of the Topic resource.
*/
@JsonProperty(value = "properties")
private TopicUpdateParameterProperties innerProperties;
/*
* The Sku pricing tier for the topic.
*/
@JsonProperty(value = "sku")
private ResourceSku sku;
/**
* Creates an instance of TopicUpdateParameters class.
*/
public TopicUpdateParameters() {
}
/**
* Get the tags property: Tags of the Topic resource.
*
* @return the tags value.
*/
public Map tags() {
return this.tags;
}
/**
* Set the tags property: Tags of the Topic resource.
*
* @param tags the tags value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withTags(Map tags) {
this.tags = tags;
return this;
}
/**
* Get the identity property: Topic resource identity information.
*
* @return the identity value.
*/
public IdentityInfo identity() {
return this.identity;
}
/**
* Set the identity property: Topic resource identity information.
*
* @param identity the identity value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withIdentity(IdentityInfo identity) {
this.identity = identity;
return this;
}
/**
* Get the innerProperties property: Properties of the Topic resource.
*
* @return the innerProperties value.
*/
private TopicUpdateParameterProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the sku property: The Sku pricing tier for the topic.
*
* @return the sku value.
*/
public ResourceSku sku() {
return this.sku;
}
/**
* Set the sku property: The Sku pricing tier for the topic.
*
* @param sku the sku value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withSku(ResourceSku sku) {
this.sku = sku;
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.TopicUpdateParameterProperties.InboundIpRules"
* />.
*
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
return this.innerProperties() == null ? null : this.innerProperties().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.TopicUpdateParameterProperties.InboundIpRules"
* />.
*
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
if (this.innerProperties() == null) {
this.innerProperties = new TopicUpdateParameterProperties();
}
this.innerProperties().withPublicNetworkAccess(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.innerProperties() == null ? null : this.innerProperties().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 TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withInboundIpRules(List inboundIpRules) {
if (this.innerProperties() == null) {
this.innerProperties = new TopicUpdateParameterProperties();
}
this.innerProperties().withInboundIpRules(inboundIpRules);
return this;
}
/**
* Get the minimumTlsVersionAllowed property: Minimum TLS version of the publisher allowed to publish to this
* domain.
*
* @return the minimumTlsVersionAllowed value.
*/
public TlsVersion minimumTlsVersionAllowed() {
return this.innerProperties() == null ? null : this.innerProperties().minimumTlsVersionAllowed();
}
/**
* Set the minimumTlsVersionAllowed property: Minimum TLS version of the publisher allowed to publish to this
* domain.
*
* @param minimumTlsVersionAllowed the minimumTlsVersionAllowed value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withMinimumTlsVersionAllowed(TlsVersion minimumTlsVersionAllowed) {
if (this.innerProperties() == null) {
this.innerProperties = new TopicUpdateParameterProperties();
}
this.innerProperties().withMinimumTlsVersionAllowed(minimumTlsVersionAllowed);
return this;
}
/**
* Get the disableLocalAuth property: This boolean is used to enable or disable local auth. Default value is false.
* When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to
* the topic.
*
* @return the disableLocalAuth value.
*/
public Boolean disableLocalAuth() {
return this.innerProperties() == null ? null : this.innerProperties().disableLocalAuth();
}
/**
* Set the disableLocalAuth property: This boolean is used to enable or disable local auth. Default value is false.
* When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to
* the topic.
*
* @param disableLocalAuth the disableLocalAuth value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withDisableLocalAuth(Boolean disableLocalAuth) {
if (this.innerProperties() == null) {
this.innerProperties = new TopicUpdateParameterProperties();
}
this.innerProperties().withDisableLocalAuth(disableLocalAuth);
return this;
}
/**
* Get the dataResidencyBoundary property: The data residency boundary for the topic.
*
* @return the dataResidencyBoundary value.
*/
public DataResidencyBoundary dataResidencyBoundary() {
return this.innerProperties() == null ? null : this.innerProperties().dataResidencyBoundary();
}
/**
* Set the dataResidencyBoundary property: The data residency boundary for the topic.
*
* @param dataResidencyBoundary the dataResidencyBoundary value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withDataResidencyBoundary(DataResidencyBoundary dataResidencyBoundary) {
if (this.innerProperties() == null) {
this.innerProperties = new TopicUpdateParameterProperties();
}
this.innerProperties().withDataResidencyBoundary(dataResidencyBoundary);
return this;
}
/**
* Get the eventTypeInfo property: The eventTypeInfo for the topic.
*
* @return the eventTypeInfo value.
*/
public EventTypeInfo eventTypeInfo() {
return this.innerProperties() == null ? null : this.innerProperties().eventTypeInfo();
}
/**
* Set the eventTypeInfo property: The eventTypeInfo for the topic.
*
* @param eventTypeInfo the eventTypeInfo value to set.
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withEventTypeInfo(EventTypeInfo eventTypeInfo) {
if (this.innerProperties() == null) {
this.innerProperties = new TopicUpdateParameterProperties();
}
this.innerProperties().withEventTypeInfo(eventTypeInfo);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (identity() != null) {
identity().validate();
}
if (innerProperties() != null) {
innerProperties().validate();
}
if (sku() != null) {
sku().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy