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

com.microsoft.azure.management.monitor.RuleManagementEventDataSource Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.monitor;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.databind.annotation.JsonTypeResolver;

/**
 * A rule management event data source. The discriminator fields is always
 * RuleManagementEventDataSource in this case.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "odata.type")
@JsonTypeName("Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource")
@JsonTypeResolver(OdataTypeDiscriminatorTypeResolver.class)
public class RuleManagementEventDataSource extends RuleDataSource {
    /**
     * the event name.
     */
    @JsonProperty(value = "eventName")
    private String eventName;

    /**
     * the event source.
     */
    @JsonProperty(value = "eventSource")
    private String eventSource;

    /**
     * the level.
     */
    @JsonProperty(value = "level")
    private String level;

    /**
     * The name of the operation that should be checked for. If no name is
     * provided, any operation will match.
     */
    @JsonProperty(value = "operationName")
    private String operationName;

    /**
     * the resource group name.
     */
    @JsonProperty(value = "resourceGroupName")
    private String resourceGroupName;

    /**
     * the resource provider name.
     */
    @JsonProperty(value = "resourceProviderName")
    private String resourceProviderName;

    /**
     * The status of the operation that should be checked for. If no status is
     * provided, any status will match.
     */
    @JsonProperty(value = "status")
    private String status;

    /**
     * the substatus.
     */
    @JsonProperty(value = "subStatus")
    private String subStatus;

    /**
     * the claims.
     */
    @JsonProperty(value = "claims")
    private RuleManagementEventClaimsDataSource claims;

    /**
     * Get the event name.
     *
     * @return the eventName value
     */
    public String eventName() {
        return this.eventName;
    }

    /**
     * Set the event name.
     *
     * @param eventName the eventName value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withEventName(String eventName) {
        this.eventName = eventName;
        return this;
    }

    /**
     * Get the event source.
     *
     * @return the eventSource value
     */
    public String eventSource() {
        return this.eventSource;
    }

    /**
     * Set the event source.
     *
     * @param eventSource the eventSource value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withEventSource(String eventSource) {
        this.eventSource = eventSource;
        return this;
    }

    /**
     * Get the level.
     *
     * @return the level value
     */
    public String level() {
        return this.level;
    }

    /**
     * Set the level.
     *
     * @param level the level value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withLevel(String level) {
        this.level = level;
        return this;
    }

    /**
     * Get the name of the operation that should be checked for. If no name is provided, any operation will match.
     *
     * @return the operationName value
     */
    public String operationName() {
        return this.operationName;
    }

    /**
     * Set the name of the operation that should be checked for. If no name is provided, any operation will match.
     *
     * @param operationName the operationName value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withOperationName(String operationName) {
        this.operationName = operationName;
        return this;
    }

    /**
     * Get the resource group name.
     *
     * @return the resourceGroupName value
     */
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Set the resource group name.
     *
     * @param resourceGroupName the resourceGroupName value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withResourceGroupName(String resourceGroupName) {
        this.resourceGroupName = resourceGroupName;
        return this;
    }

    /**
     * Get the resource provider name.
     *
     * @return the resourceProviderName value
     */
    public String resourceProviderName() {
        return this.resourceProviderName;
    }

    /**
     * Set the resource provider name.
     *
     * @param resourceProviderName the resourceProviderName value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withResourceProviderName(String resourceProviderName) {
        this.resourceProviderName = resourceProviderName;
        return this;
    }

    /**
     * Get the status of the operation that should be checked for. If no status is provided, any status will match.
     *
     * @return the status value
     */
    public String status() {
        return this.status;
    }

    /**
     * Set the status of the operation that should be checked for. If no status is provided, any status will match.
     *
     * @param status the status value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withStatus(String status) {
        this.status = status;
        return this;
    }

    /**
     * Get the substatus.
     *
     * @return the subStatus value
     */
    public String subStatus() {
        return this.subStatus;
    }

    /**
     * Set the substatus.
     *
     * @param subStatus the subStatus value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withSubStatus(String subStatus) {
        this.subStatus = subStatus;
        return this;
    }

    /**
     * Get the claims.
     *
     * @return the claims value
     */
    public RuleManagementEventClaimsDataSource claims() {
        return this.claims;
    }

    /**
     * Set the claims.
     *
     * @param claims the claims value to set
     * @return the RuleManagementEventDataSource object itself.
     */
    public RuleManagementEventDataSource withClaims(RuleManagementEventClaimsDataSource claims) {
        this.claims = claims;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy