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.
/** * 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.
/** * 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.
/** * the event name. */
@JsonProperty(value = "eventName") private String eventName;
the event source.
/** * the event source. */
@JsonProperty(value = "eventSource") private String eventSource;
the level.
/** * 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.
/** * 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.
/** * the resource group name. */
@JsonProperty(value = "resourceGroupName") private String resourceGroupName;
the resource provider name.
/** * 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.
/** * 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.
/** * the substatus. */
@JsonProperty(value = "subStatus") private String subStatus;
the claims.
/** * the claims. */
@JsonProperty(value = "claims") private RuleManagementEventClaimsDataSource claims;
Get the event name.
Returns:the eventName value
/** * Get the event name. * * @return the eventName value */
public String eventName() { return this.eventName; }
Set the event name.
Params:
  • eventName – the eventName value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the eventSource value
/** * Get the event source. * * @return the eventSource value */
public String eventSource() { return this.eventSource; }
Set the event source.
Params:
  • eventSource – the eventSource value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the level value
/** * Get the level. * * @return the level value */
public String level() { return this.level; }
Set the level.
Params:
  • level – the level value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the operationName value
/** * 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.
Params:
  • operationName – the operationName value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the resourceGroupName value
/** * Get the resource group name. * * @return the resourceGroupName value */
public String resourceGroupName() { return this.resourceGroupName; }
Set the resource group name.
Params:
  • resourceGroupName – the resourceGroupName value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the resourceProviderName value
/** * Get the resource provider name. * * @return the resourceProviderName value */
public String resourceProviderName() { return this.resourceProviderName; }
Set the resource provider name.
Params:
  • resourceProviderName – the resourceProviderName value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the status value
/** * 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.
Params:
  • status – the status value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the subStatus value
/** * Get the substatus. * * @return the subStatus value */
public String subStatus() { return this.subStatus; }
Set the substatus.
Params:
  • subStatus – the subStatus value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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.
Returns:the claims value
/** * Get the claims. * * @return the claims value */
public RuleManagementEventClaimsDataSource claims() { return this.claims; }
Set the claims.
Params:
  • claims – the claims value to set
Returns:the RuleManagementEventDataSource object itself.
/** * 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; } }