Class EventhubInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.eventhubs.fluent.models.EventhubInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class EventhubInner
extends com.azure.core.management.ProxyResource
Single item in List or Get Event Hub operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the captureDescription property: Properties of capture description.Get the createdAt property: Exact time the Event Hub was created.static EventhubInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventhubInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.location()Get the location property: The geo-location where the resource lives.Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be 1 to 7 days.name()Get the name property: The name of the resource.Get the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.Get the partitionIds property: Current number of shards on the Event Hub.Get the retentionDescription property: Event Hub retention settings.status()Get the status property: Enumerates the possible values for the status of the Event Hub.com.azure.core.management.SystemDataGet the systemData property: The system meta data relating to this resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the updatedAt property: The exact time the message was updated.Get the userMetadata property: Gets and Sets Metadata of User.voidvalidate()Validates the instance.withCaptureDescription(CaptureDescription captureDescription) Set the captureDescription property: Properties of capture description.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.withPartitionCount(Long partitionCount) Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.withRetentionDescription(RetentionDescription retentionDescription) Set the retentionDescription property: Event Hub retention settings.withStatus(EntityStatus status) Set the status property: Enumerates the possible values for the status of the Event Hub.withUserMetadata(String userMetadata) Set the userMetadata property: Gets and Sets Metadata of User.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EventhubInner
public EventhubInner()Creates an instance of EventhubInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: The system meta data relating to this resource.- Returns:
- the systemData value.
-
location
Get the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
partitionIds
Get the partitionIds property: Current number of shards on the Event Hub.- Returns:
- the partitionIds value.
-
createdAt
Get the createdAt property: Exact time the Event Hub was created.- Returns:
- the createdAt value.
-
updatedAt
Get the updatedAt property: The exact time the message was updated.- Returns:
- the updatedAt value.
-
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
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
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
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
Get the status property: Enumerates the possible values for the status of the Event Hub.- Returns:
- the status value.
-
withStatus
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.
-
userMetadata
Get the userMetadata property: Gets and Sets Metadata of User.- Returns:
- the userMetadata value.
-
withUserMetadata
Set the userMetadata property: Gets and Sets Metadata of User.- Parameters:
userMetadata- the userMetadata value to set.- Returns:
- the EventhubInner object itself.
-
captureDescription
Get the captureDescription property: Properties of capture description.- Returns:
- the captureDescription value.
-
withCaptureDescription
Set the captureDescription property: Properties of capture description.- Parameters:
captureDescription- the captureDescription value to set.- Returns:
- the EventhubInner object itself.
-
retentionDescription
Get the retentionDescription property: Event Hub retention settings.- Returns:
- the retentionDescription value.
-
withRetentionDescription
Set the retentionDescription property: Event Hub retention settings.- Parameters:
retentionDescription- the retentionDescription value to set.- Returns:
- the EventhubInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EventhubInner.
-