Share via


SystemTopicProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.fluent.models.SystemTopicProperties

Implements

public final class SystemTopicProperties
implements JsonSerializable<SystemTopicProperties>

Properties of the System Topic.

Constructor Summary

Constructor Description
SystemTopicProperties()

Creates an instance of SystemTopicProperties class.

Method Summary

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

Reads an instance of SystemTopicProperties from the JsonReader.

String metricResourceId()

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

ResourceProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the system topic.

String source()

Get the source property: Source for the system topic.

JsonWriter toJson(JsonWriter jsonWriter)
String topicType()

Get the topicType property: TopicType for the system topic.

void validate()

Validates the instance.

SystemTopicProperties withSource(String source)

Set the source property: Source for the system topic.

SystemTopicProperties withTopicType(String topicType)

Set the topicType property: TopicType for the system topic.

Methods inherited from java.lang.Object

Constructor Details

SystemTopicProperties

public SystemTopicProperties()

Creates an instance of SystemTopicProperties class.

Method Details

fromJson

public static SystemTopicProperties fromJson(JsonReader jsonReader)

Reads an instance of SystemTopicProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SystemTopicProperties 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 SystemTopicProperties.

metricResourceId

public String metricResourceId()

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

Returns:

the metricResourceId value.

provisioningState

public ResourceProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the system topic.

Returns:

the provisioningState value.

source

public String source()

Get the source property: Source for the system topic.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

topicType

public String topicType()

Get the topicType property: TopicType for the system topic.

Returns:

the topicType value.

validate

public void validate()

Validates the instance.

withSource

public SystemTopicProperties withSource(String source)

Set the source property: Source for the system topic.

Parameters:

source - the source value to set.

Returns:

the SystemTopicProperties object itself.

withTopicType

public SystemTopicProperties withTopicType(String topicType)

Set the topicType property: TopicType for the system topic.

Parameters:

topicType - the topicType value to set.

Returns:

the SystemTopicProperties object itself.

Applies to