Class MonitoredResourceInner

java.lang.Object
com.azure.resourcemanager.elastic.fluent.models.MonitoredResourceInner

public final class MonitoredResourceInner extends Object
The properties of a resource currently being monitored by the Elastic monitor resource.
  • Constructor Details

    • MonitoredResourceInner

      public MonitoredResourceInner()
      Creates an instance of MonitoredResourceInner class.
  • Method Details

    • id

      public String id()
      Get the id property: The ARM id of the resource.
      Returns:
      the id value.
    • withId

      public MonitoredResourceInner withId(String id)
      Set the id property: The ARM id of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the MonitoredResourceInner object itself.
    • sendingLogs

      public SendingLogs sendingLogs()
      Get the sendingLogs property: SendingLogs

      Flag indicating the status of the resource for sending logs operation to Elastic.

      Returns:
      the sendingLogs value.
    • withSendingLogs

      public MonitoredResourceInner withSendingLogs(SendingLogs sendingLogs)
      Set the sendingLogs property: SendingLogs

      Flag indicating the status of the resource for sending logs operation to Elastic.

      Parameters:
      sendingLogs - the sendingLogs value to set.
      Returns:
      the MonitoredResourceInner object itself.
    • reasonForLogsStatus

      public String reasonForLogsStatus()
      Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
      Returns:
      the reasonForLogsStatus value.
    • withReasonForLogsStatus

      public MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus)
      Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
      Parameters:
      reasonForLogsStatus - the reasonForLogsStatus value to set.
      Returns:
      the MonitoredResourceInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.