EventhubInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. eventhubs. fluent. models. EventhubInner
- com.
- com.
public final class EventhubInner
extends ProxyResource
Single item in List or Get Event Hub operation.
Constructor Summary
Constructor | Description |
---|---|
EventhubInner() |
Creates an instance of Eventhub |
Method Summary
Modifier and Type | Method and Description |
---|---|
Capture |
captureDescription()
Get the capture |
Offset |
createdAt()
Get the created |
static
Eventhub |
fromJson(JsonReader jsonReader)
Reads an instance of Eventhub |
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 message |
String |
name()
Get the name property: The name of the resource. |
Long |
partitionCount()
Get the partition |
List<String> |
partitionIds()
Get the partition |
Retention |
retentionDescription()
Get the retention |
Entity |
status()
Get the status property: Enumerates the possible values for the status of the Event Hub. |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
Offset |
updatedAt()
Get the updated |
String |
userMetadata()
Get the user |
void |
validate()
Validates the instance. |
Eventhub |
withCaptureDescription(CaptureDescription captureDescription)
Set the capture |
Eventhub |
withMessageRetentionInDays(Long messageRetentionInDays)
Set the message |
Eventhub |
withPartitionCount(Long partitionCount)
Set the partition |
Eventhub |
withRetentionDescription(RetentionDescription retentionDescription)
Set the retention |
Eventhub |
withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of the Event Hub. |
Eventhub |
withUserMetadata(String userMetadata)
Set the 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:
createdAt
public OffsetDateTime createdAt()
Get the createdAt property: Exact time the Event Hub was created.
Returns:
fromJson
public static EventhubInner fromJson(JsonReader jsonReader)
Reads an instance of EventhubInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
EventhubInner.id()Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Returns:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
EventhubInner.name()Returns:
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:
partitionIds
public List
Get the partitionIds property: Current number of shards on the Event Hub.
Returns:
retentionDescription
public RetentionDescription retentionDescription()
Get the retentionDescription property: Event Hub retention settings.
Returns:
status
public EntityStatus status()
Get the status property: Enumerates the possible values for the status of the Event Hub.
Returns:
systemData
public SystemData systemData()
Get the systemData property: The system meta data relating to this resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
EventhubInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
EventhubInner.type()Returns:
updatedAt
public OffsetDateTime updatedAt()
Get the updatedAt property: The exact time the message was updated.
Returns:
userMetadata
public String userMetadata()
Get the userMetadata property: Gets and Sets Metadata of User.
Returns:
validate
public void validate()
Validates the instance.
withCaptureDescription
public EventhubInner withCaptureDescription(CaptureDescription captureDescription)
Set the captureDescription property: Properties of capture description.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withRetentionDescription
public EventhubInner withRetentionDescription(RetentionDescription retentionDescription)
Set the retentionDescription property: Event Hub retention settings.
Parameters:
Returns:
withStatus
public EventhubInner withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of the Event Hub.
Parameters:
Returns:
withUserMetadata
public EventhubInner withUserMetadata(String userMetadata)
Set the userMetadata property: Gets and Sets Metadata of User.
Parameters:
Returns:
Applies to
Azure SDK for Java