com.pulumi.azurenative.datadog.outputs.MonitoredSubscriptionResponse 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.datadog.outputs;
import com.pulumi.azurenative.datadog.outputs.MonitoringTagRulesPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MonitoredSubscriptionResponse {
/**
* @return The reason of not monitoring the subscription.
*
*/
private @Nullable String error;
/**
* @return The state of monitoring.
*
*/
private @Nullable String status;
/**
* @return The subscriptionId to be monitored.
*
*/
private @Nullable String subscriptionId;
/**
* @return Definition of the properties for a TagRules resource.
*
*/
private @Nullable MonitoringTagRulesPropertiesResponse tagRules;
private MonitoredSubscriptionResponse() {}
/**
* @return The reason of not monitoring the subscription.
*
*/
public Optional error() {
return Optional.ofNullable(this.error);
}
/**
* @return The state of monitoring.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return The subscriptionId to be monitored.
*
*/
public Optional subscriptionId() {
return Optional.ofNullable(this.subscriptionId);
}
/**
* @return Definition of the properties for a TagRules resource.
*
*/
public Optional tagRules() {
return Optional.ofNullable(this.tagRules);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MonitoredSubscriptionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String error;
private @Nullable String status;
private @Nullable String subscriptionId;
private @Nullable MonitoringTagRulesPropertiesResponse tagRules;
public Builder() {}
public Builder(MonitoredSubscriptionResponse defaults) {
Objects.requireNonNull(defaults);
this.error = defaults.error;
this.status = defaults.status;
this.subscriptionId = defaults.subscriptionId;
this.tagRules = defaults.tagRules;
}
@CustomType.Setter
public Builder error(@Nullable String error) {
this.error = error;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder subscriptionId(@Nullable String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
@CustomType.Setter
public Builder tagRules(@Nullable MonitoringTagRulesPropertiesResponse tagRules) {
this.tagRules = tagRules;
return this;
}
public MonitoredSubscriptionResponse build() {
final var _resultValue = new MonitoredSubscriptionResponse();
_resultValue.error = error;
_resultValue.status = status;
_resultValue.subscriptionId = subscriptionId;
_resultValue.tagRules = tagRules;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy