com.pulumi.azurenative.insights.outputs.RuleManagementEventDataSourceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.insights.outputs;
import com.pulumi.azurenative.insights.outputs.RuleManagementEventClaimsDataSourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RuleManagementEventDataSourceResponse {
/**
* @return the claims.
*
*/
private @Nullable RuleManagementEventClaimsDataSourceResponse claims;
/**
* @return the event name.
*
*/
private @Nullable String eventName;
/**
* @return the event source.
*
*/
private @Nullable String eventSource;
/**
* @return the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
*
*/
private @Nullable String legacyResourceId;
/**
* @return the level.
*
*/
private @Nullable String level;
/**
* @return the namespace of the metric.
*
*/
private @Nullable String metricNamespace;
/**
* @return specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource
* Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource'.
*
*/
private String odataType;
/**
* @return The name of the operation that should be checked for. If no name is provided, any operation will match.
*
*/
private @Nullable String operationName;
/**
* @return the resource group name.
*
*/
private @Nullable String resourceGroupName;
/**
* @return the location of the resource.
*
*/
private @Nullable String resourceLocation;
/**
* @return the resource provider name.
*
*/
private @Nullable String resourceProviderName;
/**
* @return the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
*
*/
private @Nullable String resourceUri;
/**
* @return The status of the operation that should be checked for. If no status is provided, any status will match.
*
*/
private @Nullable String status;
/**
* @return the substatus.
*
*/
private @Nullable String subStatus;
private RuleManagementEventDataSourceResponse() {}
/**
* @return the claims.
*
*/
public Optional claims() {
return Optional.ofNullable(this.claims);
}
/**
* @return the event name.
*
*/
public Optional eventName() {
return Optional.ofNullable(this.eventName);
}
/**
* @return the event source.
*
*/
public Optional eventSource() {
return Optional.ofNullable(this.eventSource);
}
/**
* @return the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
*
*/
public Optional legacyResourceId() {
return Optional.ofNullable(this.legacyResourceId);
}
/**
* @return the level.
*
*/
public Optional level() {
return Optional.ofNullable(this.level);
}
/**
* @return the namespace of the metric.
*
*/
public Optional metricNamespace() {
return Optional.ofNullable(this.metricNamespace);
}
/**
* @return specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource
* Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource'.
*
*/
public String odataType() {
return this.odataType;
}
/**
* @return The name of the operation that should be checked for. If no name is provided, any operation will match.
*
*/
public Optional operationName() {
return Optional.ofNullable(this.operationName);
}
/**
* @return the resource group name.
*
*/
public Optional resourceGroupName() {
return Optional.ofNullable(this.resourceGroupName);
}
/**
* @return the location of the resource.
*
*/
public Optional resourceLocation() {
return Optional.ofNullable(this.resourceLocation);
}
/**
* @return the resource provider name.
*
*/
public Optional resourceProviderName() {
return Optional.ofNullable(this.resourceProviderName);
}
/**
* @return the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
*
*/
public Optional resourceUri() {
return Optional.ofNullable(this.resourceUri);
}
/**
* @return The status of the operation that should be checked for. If no status is provided, any status will match.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return the substatus.
*
*/
public Optional subStatus() {
return Optional.ofNullable(this.subStatus);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleManagementEventDataSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable RuleManagementEventClaimsDataSourceResponse claims;
private @Nullable String eventName;
private @Nullable String eventSource;
private @Nullable String legacyResourceId;
private @Nullable String level;
private @Nullable String metricNamespace;
private String odataType;
private @Nullable String operationName;
private @Nullable String resourceGroupName;
private @Nullable String resourceLocation;
private @Nullable String resourceProviderName;
private @Nullable String resourceUri;
private @Nullable String status;
private @Nullable String subStatus;
public Builder() {}
public Builder(RuleManagementEventDataSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.claims = defaults.claims;
this.eventName = defaults.eventName;
this.eventSource = defaults.eventSource;
this.legacyResourceId = defaults.legacyResourceId;
this.level = defaults.level;
this.metricNamespace = defaults.metricNamespace;
this.odataType = defaults.odataType;
this.operationName = defaults.operationName;
this.resourceGroupName = defaults.resourceGroupName;
this.resourceLocation = defaults.resourceLocation;
this.resourceProviderName = defaults.resourceProviderName;
this.resourceUri = defaults.resourceUri;
this.status = defaults.status;
this.subStatus = defaults.subStatus;
}
@CustomType.Setter
public Builder claims(@Nullable RuleManagementEventClaimsDataSourceResponse claims) {
this.claims = claims;
return this;
}
@CustomType.Setter
public Builder eventName(@Nullable String eventName) {
this.eventName = eventName;
return this;
}
@CustomType.Setter
public Builder eventSource(@Nullable String eventSource) {
this.eventSource = eventSource;
return this;
}
@CustomType.Setter
public Builder legacyResourceId(@Nullable String legacyResourceId) {
this.legacyResourceId = legacyResourceId;
return this;
}
@CustomType.Setter
public Builder level(@Nullable String level) {
this.level = level;
return this;
}
@CustomType.Setter
public Builder metricNamespace(@Nullable String metricNamespace) {
this.metricNamespace = metricNamespace;
return this;
}
@CustomType.Setter
public Builder odataType(String odataType) {
if (odataType == null) {
throw new MissingRequiredPropertyException("RuleManagementEventDataSourceResponse", "odataType");
}
this.odataType = odataType;
return this;
}
@CustomType.Setter
public Builder operationName(@Nullable String operationName) {
this.operationName = operationName;
return this;
}
@CustomType.Setter
public Builder resourceGroupName(@Nullable String resourceGroupName) {
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder resourceLocation(@Nullable String resourceLocation) {
this.resourceLocation = resourceLocation;
return this;
}
@CustomType.Setter
public Builder resourceProviderName(@Nullable String resourceProviderName) {
this.resourceProviderName = resourceProviderName;
return this;
}
@CustomType.Setter
public Builder resourceUri(@Nullable String resourceUri) {
this.resourceUri = resourceUri;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder subStatus(@Nullable String subStatus) {
this.subStatus = subStatus;
return this;
}
public RuleManagementEventDataSourceResponse build() {
final var _resultValue = new RuleManagementEventDataSourceResponse();
_resultValue.claims = claims;
_resultValue.eventName = eventName;
_resultValue.eventSource = eventSource;
_resultValue.legacyResourceId = legacyResourceId;
_resultValue.level = level;
_resultValue.metricNamespace = metricNamespace;
_resultValue.odataType = odataType;
_resultValue.operationName = operationName;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.resourceLocation = resourceLocation;
_resultValue.resourceProviderName = resourceProviderName;
_resultValue.resourceUri = resourceUri;
_resultValue.status = status;
_resultValue.subStatus = subStatus;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy