All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.elastic.fluent.models.MonitoredResourceInner Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.elastic.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.elastic.models.SendingLogs;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The properties of a resource currently being monitored by the Elastic monitor resource. */
@Fluent
public final class MonitoredResourceInner {
    /*
     * The ARM id of the resource.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * SendingLogs
     *
     * Flag indicating the status of the resource for sending logs operation to Elastic.
     */
    @JsonProperty(value = "sendingLogs")
    private SendingLogs sendingLogs;

    /*
     * Reason for why the resource is sending logs (or why it is not sending).
     */
    @JsonProperty(value = "reasonForLogsStatus")
    private String reasonForLogsStatus;

    /** Creates an instance of MonitoredResourceInner class. */
    public MonitoredResourceInner() {
    }

    /**
     * Get the id property: The ARM id of the resource.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: The ARM id of the resource.
     *
     * @param id the id value to set.
     * @return the MonitoredResourceInner object itself.
     */
    public MonitoredResourceInner withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the sendingLogs property: SendingLogs
     *
     * 

Flag indicating the status of the resource for sending logs operation to Elastic. * * @return the sendingLogs value. */ public SendingLogs sendingLogs() { return this.sendingLogs; } /** * Set the sendingLogs property: SendingLogs * *

Flag indicating the status of the resource for sending logs operation to Elastic. * * @param sendingLogs the sendingLogs value to set. * @return the MonitoredResourceInner object itself. */ public MonitoredResourceInner withSendingLogs(SendingLogs sendingLogs) { this.sendingLogs = sendingLogs; return this; } /** * Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending). * * @return the reasonForLogsStatus value. */ public String reasonForLogsStatus() { return this.reasonForLogsStatus; } /** * Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending). * * @param reasonForLogsStatus the reasonForLogsStatus value to set. * @return the MonitoredResourceInner object itself. */ public MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus) { this.reasonForLogsStatus = reasonForLogsStatus; return this; } /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy