EventhubInner Class

public final class EventhubInner
extends ProxyResource

Single item in List or Get Event Hub operation.

Constructor Summary

Constructor Description
EventhubInner()

Creates an instance of EventhubInner class.

Method Summary

Modifier and Type Method and Description
CaptureDescription captureDescription()

Get the captureDescription property: Properties of capture description.

OffsetDateTime createdAt()

Get the createdAt property: Exact time the Event Hub was created.

static EventhubInner fromJson(JsonReader jsonReader)

Reads an instance of EventhubInner from the JsonReader.

String id()

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

String location()

Get the location property: The geo-location where the resource lives.

Long messageRetentionInDays()

Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.

String name()

Get the name property: The name of the resource.

Long partitionCount()

Get the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.

List<String> partitionIds()

Get the partitionIds property: Current number of shards on the Event Hub.

RetentionDescription retentionDescription()

Get the retentionDescription property: Event Hub retention settings.

EntityStatus status()

Get the status property: Enumerates the possible values for the status of the Event Hub.

SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

OffsetDateTime updatedAt()

Get the updatedAt property: The exact time the message was updated.

String userMetadata()

Get the userMetadata property: Gets and Sets Metadata of User.

void validate()

Validates the instance.

EventhubInner withCaptureDescription(CaptureDescription captureDescription)

Set the captureDescription property: Properties of capture description.

EventhubInner withMessageRetentionInDays(Long messageRetentionInDays)

Set the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.

EventhubInner withPartitionCount(Long partitionCount)

Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.

EventhubInner withRetentionDescription(RetentionDescription retentionDescription)

Set the retentionDescription property: Event Hub retention settings.

EventhubInner withStatus(EntityStatus status)

Set the status property: Enumerates the possible values for the status of the Event Hub.

EventhubInner withUserMetadata(String userMetadata)

Set the userMetadata property: Gets and Sets Metadata of User.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

EventhubInner

public EventhubInner()

Creates an instance of EventhubInner class.

Method Details

captureDescription

public CaptureDescription captureDescription()

Get the captureDescription property: Properties of capture description.

Returns:

the captureDescription value.

createdAt

public OffsetDateTime createdAt()

Get the createdAt property: Exact time the Event Hub was created.

Returns:

the createdAt value.

fromJson

public static EventhubInner fromJson(JsonReader jsonReader)

Reads an instance of EventhubInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventhubInner 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:

EventhubInner.id()

Returns:

the id value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

messageRetentionInDays

public Long messageRetentionInDays()

Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.

Returns:

the messageRetentionInDays value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

EventhubInner.name()

Returns:

the name value.

partitionCount

public Long partitionCount()

Get the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.

Returns:

the partitionCount value.

partitionIds

public List partitionIds()

Get the partitionIds property: Current number of shards on the Event Hub.

Returns:

the partitionIds value.

retentionDescription

public RetentionDescription retentionDescription()

Get the retentionDescription property: Event Hub retention settings.

Returns:

the retentionDescription value.

status

public EntityStatus status()

Get the status property: Enumerates the possible values for the status of the Event Hub.

Returns:

the status value.

systemData

public SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EventhubInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

EventhubInner.type()

Returns:

the type value.

updatedAt

public OffsetDateTime updatedAt()

Get the updatedAt property: The exact time the message was updated.

Returns:

the updatedAt value.

userMetadata

public String userMetadata()

Get the userMetadata property: Gets and Sets Metadata of User.

Returns:

the userMetadata value.

validate

public void validate()

Validates the instance.

withCaptureDescription

public EventhubInner withCaptureDescription(CaptureDescription captureDescription)

Set the captureDescription property: Properties of capture description.

Parameters:

captureDescription - the captureDescription value to set.

Returns:

the EventhubInner object itself.

withMessageRetentionInDays

public EventhubInner withMessageRetentionInDays(Long messageRetentionInDays)

Set the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.

Parameters:

messageRetentionInDays - the messageRetentionInDays value to set.

Returns:

the EventhubInner object itself.

withPartitionCount

public EventhubInner withPartitionCount(Long partitionCount)

Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.

Parameters:

partitionCount - the partitionCount value to set.

Returns:

the EventhubInner object itself.

withRetentionDescription

public EventhubInner withRetentionDescription(RetentionDescription retentionDescription)

Set the retentionDescription property: Event Hub retention settings.

Parameters:

retentionDescription - the retentionDescription value to set.

Returns:

the EventhubInner object itself.

withStatus

public EventhubInner withStatus(EntityStatus status)

Set the status property: Enumerates the possible values for the status of the Event Hub.

Parameters:

status - the status value to set.

Returns:

the EventhubInner object itself.

withUserMetadata

public EventhubInner withUserMetadata(String userMetadata)

Set the userMetadata property: Gets and Sets Metadata of User.

Parameters:

userMetadata - the userMetadata value to set.

Returns:

the EventhubInner object itself.

Applies to