Udostępnij za pośrednictwem


SystemTopicInner Class

public final class SystemTopicInner
extends Resource

EventGrid System Topic.

Constructor Summary

Constructor Description
SystemTopicInner()

Creates an instance of SystemTopicInner class.

Method Summary

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

Reads an instance of SystemTopicInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

IdentityInfo identity()

Get the identity property: Identity information for the resource.

String metricResourceId()

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

String name()

Get the name property: The name of the resource.

ResourceProvisioningState provisioningState()

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

String source()

Get the source property: Source for the system topic.

SystemData systemData()

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

JsonWriter toJson(JsonWriter jsonWriter)
String topicType()

Get the topicType property: TopicType for the system topic.

String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SystemTopicInner withIdentity(IdentityInfo identity)

Set the identity property: Identity information for the resource.

SystemTopicInner withLocation(String location)
SystemTopicInner withSource(String source)

Set the source property: Source for the system topic.

SystemTopicInner withTags(Map<String,String> tags)
SystemTopicInner withTopicType(String topicType)

Set the topicType property: TopicType for the system topic.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

SystemTopicInner

public SystemTopicInner()

Creates an instance of SystemTopicInner class.

Method Details

fromJson

public static SystemTopicInner fromJson(JsonReader jsonReader)

Reads an instance of SystemTopicInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SystemTopicInner.id()

Returns:

the id value.

identity

public IdentityInfo identity()

Get the identity property: Identity information for the resource.

Returns:

the identity value.

metricResourceId

public String metricResourceId()

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

Returns:

the metricResourceId value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SystemTopicInner.name()

Returns:

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

systemData

public SystemData systemData()

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

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SystemTopicInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

topicType

public String topicType()

Get the topicType property: TopicType for the system topic.

Returns:

the topicType value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

SystemTopicInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIdentity

public SystemTopicInner withIdentity(IdentityInfo identity)

Set the identity property: Identity information for the resource.

Parameters:

identity - the identity value to set.

Returns:

the SystemTopicInner object itself.

withLocation

public SystemTopicInner withLocation(String location)

Overrides:

SystemTopicInner.withLocation(String location)

Parameters:

location

withSource

public SystemTopicInner withSource(String source)

Set the source property: Source for the system topic.

Parameters:

source - the source value to set.

Returns:

the SystemTopicInner object itself.

withTags

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

Overrides:

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

Parameters:

tags

withTopicType

public SystemTopicInner withTopicType(String topicType)

Set the topicType property: TopicType for the system topic.

Parameters:

topicType - the topicType value to set.

Returns:

the SystemTopicInner object itself.

Applies to