TopicInner Class

public final class TopicInner
extends Resource

EventGrid Topic.

Constructor Summary

Constructor Description
TopicInner()

Method Summary

Modifier and Type Method and Description
Boolean disableLocalAuth()

Get the disableLocalAuth property: This boolean is used to enable or disable local auth.

String endpoint()

Get the endpoint property: Endpoint for the topic.

IdentityInfo identity()

Get the identity property: Identity information for the resource.

List<InboundIpRule> inboundIpRules()

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

InputSchema inputSchema()

Get the inputSchema property: This determines the format that Event Grid should expect for incoming events published to the topic.

InputSchemaMapping inputSchemaMapping()

Get the inputSchemaMapping property: This enables publishing using custom event schemas.

String metricResourceId()

Get the metricResourceId property: Metric resource id for the topic.

List<PrivateEndpointConnectionInner> privateEndpointConnections()

Get the privateEndpointConnections property: The privateEndpointConnections property.

TopicProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the topic.

PublicNetworkAccess publicNetworkAccess()

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

SystemData systemData()

Get the systemData property: The system metadata relating to Topic resource.

void validate()

Validates the instance.

TopicInner withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: This boolean is used to enable or disable local auth.

TopicInner withIdentity(IdentityInfo identity)

Set the identity property: Identity information for the resource.

TopicInner withInboundIpRules(List<InboundIpRule> inboundIpRules)

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

TopicInner withInputSchema(InputSchema inputSchema)

Set the inputSchema property: This determines the format that Event Grid should expect for incoming events published to the topic.

TopicInner withInputSchemaMapping(InputSchemaMapping inputSchemaMapping)

Set the inputSchemaMapping property: This enables publishing using custom event schemas.

TopicInner withLocation(String location)
TopicInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

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

TopicInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

TopicInner

public TopicInner()

Method Details

disableLocalAuth

public Boolean disableLocalAuth()

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.

Returns:

the disableLocalAuth value.

endpoint

public String endpoint()

Get the endpoint property: Endpoint for the topic.

Returns:

the endpoint value.

identity

public IdentityInfo identity()

Get the identity property: Identity information for the resource.

Returns:

the identity value.

inboundIpRules

public List 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.

inputSchema

public InputSchema inputSchema()

Get the inputSchema property: This determines the format that Event Grid should expect for incoming events published to the topic.

Returns:

the inputSchema value.

inputSchemaMapping

public InputSchemaMapping inputSchemaMapping()

Get the inputSchemaMapping property: This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.

Returns:

the inputSchemaMapping value.

metricResourceId

public String metricResourceId()

Get the metricResourceId property: Metric resource id for the topic.

Returns:

the metricResourceId value.

privateEndpointConnections

public List privateEndpointConnections()

Get the privateEndpointConnections property: The privateEndpointConnections property.

Returns:

the privateEndpointConnections value.

provisioningState

public TopicProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the topic.

Returns:

the provisioningState 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 .

Returns:

the publicNetworkAccess value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata relating to Topic resource.

Returns:

the systemData value.

validate

public void validate()

Validates the instance.

withDisableLocalAuth

public TopicInner withDisableLocalAuth(Boolean 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.

Parameters:

disableLocalAuth - the disableLocalAuth value to set.

Returns:

the TopicInner object itself.

withIdentity

public TopicInner withIdentity(IdentityInfo identity)

Set the identity property: Identity information for the resource.

Parameters:

identity - the identity value to set.

Returns:

the TopicInner object itself.

withInboundIpRules

public TopicInner withInboundIpRules(List 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 TopicInner object itself.

withInputSchema

public TopicInner withInputSchema(InputSchema inputSchema)

Set the inputSchema property: This determines the format that Event Grid should expect for incoming events published to the topic.

Parameters:

inputSchema - the inputSchema value to set.

Returns:

the TopicInner object itself.

withInputSchemaMapping

public TopicInner withInputSchemaMapping(InputSchemaMapping inputSchemaMapping)

Set the inputSchemaMapping property: This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.

Parameters:

inputSchemaMapping - the inputSchemaMapping value to set.

Returns:

the TopicInner object itself.

withLocation

public TopicInner withLocation(String location)

Overrides:

TopicInner.withLocation(String location)

Parameters:

location

withPublicNetworkAccess

public TopicInner 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 .

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the TopicInner object itself.

withTags

public TopicInner withTags(Map tags)

Overrides:

TopicInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to

Azure SDK for Java

Latest