com.pulumi.azurenative.logz.outputs.MetricRulesResponse 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.
The newest version!
// *** 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.logz.outputs;
import com.pulumi.azurenative.logz.outputs.FilteringTagResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MetricRulesResponse {
/**
* @return List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
*
*/
private @Nullable List filteringTags;
/**
* @return Subscription Id for which filtering tags are applicable
*
*/
private @Nullable String subscriptionId;
private MetricRulesResponse() {}
/**
* @return List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
*
*/
public List filteringTags() {
return this.filteringTags == null ? List.of() : this.filteringTags;
}
/**
* @return Subscription Id for which filtering tags are applicable
*
*/
public Optional subscriptionId() {
return Optional.ofNullable(this.subscriptionId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MetricRulesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List filteringTags;
private @Nullable String subscriptionId;
public Builder() {}
public Builder(MetricRulesResponse defaults) {
Objects.requireNonNull(defaults);
this.filteringTags = defaults.filteringTags;
this.subscriptionId = defaults.subscriptionId;
}
@CustomType.Setter
public Builder filteringTags(@Nullable List filteringTags) {
this.filteringTags = filteringTags;
return this;
}
public Builder filteringTags(FilteringTagResponse... filteringTags) {
return filteringTags(List.of(filteringTags));
}
@CustomType.Setter
public Builder subscriptionId(@Nullable String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
public MetricRulesResponse build() {
final var _resultValue = new MetricRulesResponse();
_resultValue.filteringTags = filteringTags;
_resultValue.subscriptionId = subscriptionId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy