com.pulumi.azurenative.alertsmanagement.outputs.DiagnosticsResponse 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.alertsmanagement.outputs;
import com.pulumi.azurenative.alertsmanagement.outputs.ConditionsResponse;
import com.pulumi.azurenative.alertsmanagement.outputs.ScopeResponse;
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 DiagnosticsResponse {
/**
* @return conditions on which alerts will be filtered
*
*/
private @Nullable ConditionsResponse conditions;
/**
* @return Creation time of action rule. Date-Time in ISO-8601 format.
*
*/
private String createdAt;
/**
* @return Created by user name.
*
*/
private String createdBy;
/**
* @return Description of action rule
*
*/
private @Nullable String description;
/**
* @return Last updated time of action rule. Date-Time in ISO-8601 format.
*
*/
private String lastModifiedAt;
/**
* @return Last modified by user name.
*
*/
private String lastModifiedBy;
/**
* @return scope on which action rule will apply
*
*/
private @Nullable ScopeResponse scope;
/**
* @return Indicates if the given action rule is enabled or disabled
*
*/
private @Nullable String status;
/**
* @return Indicates type of action rule
* Expected value is 'Diagnostics'.
*
*/
private String type;
private DiagnosticsResponse() {}
/**
* @return conditions on which alerts will be filtered
*
*/
public Optional conditions() {
return Optional.ofNullable(this.conditions);
}
/**
* @return Creation time of action rule. Date-Time in ISO-8601 format.
*
*/
public String createdAt() {
return this.createdAt;
}
/**
* @return Created by user name.
*
*/
public String createdBy() {
return this.createdBy;
}
/**
* @return Description of action rule
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Last updated time of action rule. Date-Time in ISO-8601 format.
*
*/
public String lastModifiedAt() {
return this.lastModifiedAt;
}
/**
* @return Last modified by user name.
*
*/
public String lastModifiedBy() {
return this.lastModifiedBy;
}
/**
* @return scope on which action rule will apply
*
*/
public Optional scope() {
return Optional.ofNullable(this.scope);
}
/**
* @return Indicates if the given action rule is enabled or disabled
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return Indicates type of action rule
* Expected value is 'Diagnostics'.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DiagnosticsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ConditionsResponse conditions;
private String createdAt;
private String createdBy;
private @Nullable String description;
private String lastModifiedAt;
private String lastModifiedBy;
private @Nullable ScopeResponse scope;
private @Nullable String status;
private String type;
public Builder() {}
public Builder(DiagnosticsResponse defaults) {
Objects.requireNonNull(defaults);
this.conditions = defaults.conditions;
this.createdAt = defaults.createdAt;
this.createdBy = defaults.createdBy;
this.description = defaults.description;
this.lastModifiedAt = defaults.lastModifiedAt;
this.lastModifiedBy = defaults.lastModifiedBy;
this.scope = defaults.scope;
this.status = defaults.status;
this.type = defaults.type;
}
@CustomType.Setter
public Builder conditions(@Nullable ConditionsResponse conditions) {
this.conditions = conditions;
return this;
}
@CustomType.Setter
public Builder createdAt(String createdAt) {
if (createdAt == null) {
throw new MissingRequiredPropertyException("DiagnosticsResponse", "createdAt");
}
this.createdAt = createdAt;
return this;
}
@CustomType.Setter
public Builder createdBy(String createdBy) {
if (createdBy == null) {
throw new MissingRequiredPropertyException("DiagnosticsResponse", "createdBy");
}
this.createdBy = createdBy;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder lastModifiedAt(String lastModifiedAt) {
if (lastModifiedAt == null) {
throw new MissingRequiredPropertyException("DiagnosticsResponse", "lastModifiedAt");
}
this.lastModifiedAt = lastModifiedAt;
return this;
}
@CustomType.Setter
public Builder lastModifiedBy(String lastModifiedBy) {
if (lastModifiedBy == null) {
throw new MissingRequiredPropertyException("DiagnosticsResponse", "lastModifiedBy");
}
this.lastModifiedBy = lastModifiedBy;
return this;
}
@CustomType.Setter
public Builder scope(@Nullable ScopeResponse scope) {
this.scope = scope;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("DiagnosticsResponse", "type");
}
this.type = type;
return this;
}
public DiagnosticsResponse build() {
final var _resultValue = new DiagnosticsResponse();
_resultValue.conditions = conditions;
_resultValue.createdAt = createdAt;
_resultValue.createdBy = createdBy;
_resultValue.description = description;
_resultValue.lastModifiedAt = lastModifiedAt;
_resultValue.lastModifiedBy = lastModifiedBy;
_resultValue.scope = scope;
_resultValue.status = status;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy