Udostępnij za pośrednictwem


NamespaceUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.NamespaceUpdateParameters

Implements

public final class NamespaceUpdateParameters
implements JsonSerializable<NamespaceUpdateParameters>

Properties to update namespace.

Constructor Summary

Constructor Description
NamespaceUpdateParameters()

Creates an instance of NamespaceUpdateParameters class.

Method Summary

Modifier and Type Method and Description
static NamespaceUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of NamespaceUpdateParameters from the JsonReader.

IdentityInfo identity()

Get the identity property: Namespace resource identity information.

List<InboundIpRule> inboundIpRules()

Get the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: This determines if traffic is allowed over public network.

NamespaceSku sku()

Get the sku property: Represents available Sku pricing tiers.

Map<String,String> tags()

Get the tags property: Tags of the namespace resource.

JsonWriter toJson(JsonWriter jsonWriter)
UpdateTopicsConfigurationInfo topicsConfiguration()

Get the topicsConfiguration property: Topics configuration properties that can be updated.

UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration()

Get the topicSpacesConfiguration property: Topic spaces configuration properties that can be updated.

void validate()

Validates the instance.

NamespaceUpdateParameters withIdentity(IdentityInfo identity)

Set the identity property: Namespace resource identity information.

NamespaceUpdateParameters withInboundIpRules(List<InboundIpRule> inboundIpRules)

Set the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs.

NamespaceUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: This determines if traffic is allowed over public network.

NamespaceUpdateParameters withSku(NamespaceSku sku)

Set the sku property: Represents available Sku pricing tiers.

NamespaceUpdateParameters withTags(Map<String,String> tags)

Set the tags property: Tags of the namespace resource.

NamespaceUpdateParameters withTopicsConfiguration(UpdateTopicsConfigurationInfo topicsConfiguration)

Set the topicsConfiguration property: Topics configuration properties that can be updated.

NamespaceUpdateParameters withTopicSpacesConfiguration(UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration)

Set the topicSpacesConfiguration property: Topic spaces configuration properties that can be updated.

Methods inherited from java.lang.Object

Constructor Details

NamespaceUpdateParameters

public NamespaceUpdateParameters()

Creates an instance of NamespaceUpdateParameters class.

Method Details

fromJson

public static NamespaceUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of NamespaceUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NamespaceUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the NamespaceUpdateParameters.

identity

public IdentityInfo identity()

Get the identity property: Namespace resource identity information.

Returns:

the identity value.

inboundIpRules

public List<InboundIpRule> inboundIpRules()

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.

Returns:

the inboundIpRules value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

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" />.

Returns:

the publicNetworkAccess value.

sku

public NamespaceSku sku()

Get the sku property: Represents available Sku pricing tiers.

Returns:

the sku value.

tags

public Map<String,String> tags()

Get the tags property: Tags of the namespace resource.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

topicsConfiguration

public UpdateTopicsConfigurationInfo topicsConfiguration()

Get the topicsConfiguration property: Topics configuration properties that can be updated.

Returns:

the topicsConfiguration value.

topicSpacesConfiguration

public UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration()

Get the topicSpacesConfiguration property: Topic spaces configuration properties that can be updated.

Returns:

the topicSpacesConfiguration value.

validate

public void validate()

Validates the instance.

withIdentity

public NamespaceUpdateParameters withIdentity(IdentityInfo identity)

Set the identity property: Namespace resource identity information.

Parameters:

identity - the identity value to set.

Returns:

the NamespaceUpdateParameters object itself.

withInboundIpRules

public NamespaceUpdateParameters withInboundIpRules(List<InboundIpRule> 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.

Parameters:

inboundIpRules - the inboundIpRules value to set.

Returns:

the NamespaceUpdateParameters object itself.

withPublicNetworkAccess

public NamespaceUpdateParameters withPublicNetworkAccess(PublicNetworkAccess 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" />.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the NamespaceUpdateParameters object itself.

withSku

public NamespaceUpdateParameters withSku(NamespaceSku sku)

Set the sku property: Represents available Sku pricing tiers.

Parameters:

sku - the sku value to set.

Returns:

the NamespaceUpdateParameters object itself.

withTags

public NamespaceUpdateParameters withTags(Map<String,String> tags)

Set the tags property: Tags of the namespace resource.

Parameters:

tags - the tags value to set.

Returns:

the NamespaceUpdateParameters object itself.

withTopicsConfiguration

public NamespaceUpdateParameters withTopicsConfiguration(UpdateTopicsConfigurationInfo topicsConfiguration)

Set the topicsConfiguration property: Topics configuration properties that can be updated.

Parameters:

topicsConfiguration - the topicsConfiguration value to set.

Returns:

the NamespaceUpdateParameters object itself.

withTopicSpacesConfiguration

public NamespaceUpdateParameters withTopicSpacesConfiguration(UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration)

Set the topicSpacesConfiguration property: Topic spaces configuration properties that can be updated.

Parameters:

topicSpacesConfiguration - the topicSpacesConfiguration value to set.

Returns:

the NamespaceUpdateParameters object itself.

Applies to