Class EventhubInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.servicebus.fluent.models.EventhubInner
-
public class EventhubInner extends com.azure.core.management.ProxyResourceSingle item in List or Get Event Hub operation.
-
-
Constructor Summary
Constructors Constructor Description EventhubInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaptureDescriptioncaptureDescription()Get the captureDescription property: Properties of capture description.OffsetDateTimecreatedAt()Get the createdAt property: Exact time the Event Hub was created.LongmessageRetentionInDays()Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.LongpartitionCount()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.EntityStatusstatus()Get the status property: Enumerates the possible values for the status of a Event Hub.OffsetDateTimeupdatedAt()Get the updatedAt property: The exact time the message was updated.voidvalidate()Validates the instance.EventhubInnerwithCaptureDescription(CaptureDescription captureDescription)Set the captureDescription property: Properties of capture description.EventhubInnerwithMessageRetentionInDays(Long messageRetentionInDays)Set the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.EventhubInnerwithPartitionCount(Long partitionCount)Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.EventhubInnerwithStatus(EntityStatus status)Set the status property: Enumerates the possible values for the status of a Event Hub.
-
-
-
Method Detail
-
partitionIds
public List<String> partitionIds()
Get the partitionIds property: Current number of shards on the Event Hub.- Returns:
- the partitionIds value.
-
createdAt
public OffsetDateTime createdAt()
Get the createdAt property: Exact time the Event Hub was created.- Returns:
- the createdAt value.
-
updatedAt
public OffsetDateTime updatedAt()
Get the updatedAt property: The exact time the message was updated.- Returns:
- the updatedAt 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.
-
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.
-
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.
-
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.
-
status
public EntityStatus status()
Get the status property: Enumerates the possible values for the status of a Event Hub.- Returns:
- the status value.
-
withStatus
public EventhubInner withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of a Event Hub.- Parameters:
status- the status value to set.- Returns:
- the EventhubInner object itself.
-
captureDescription
public CaptureDescription captureDescription()
Get the captureDescription property: Properties of capture description.- Returns:
- the captureDescription value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-