com.pulumi.azurenative.insights.outputs.ActionsResponse 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.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ActionsResponse {
/**
* @return Action Group resource Ids to invoke when the alert fires.
*
*/
private @Nullable List actionGroups;
/**
* @return The properties of an action properties.
*
*/
private @Nullable Map actionProperties;
/**
* @return The properties of an alert payload.
*
*/
private @Nullable Map customProperties;
private ActionsResponse() {}
/**
* @return Action Group resource Ids to invoke when the alert fires.
*
*/
public List actionGroups() {
return this.actionGroups == null ? List.of() : this.actionGroups;
}
/**
* @return The properties of an action properties.
*
*/
public Map actionProperties() {
return this.actionProperties == null ? Map.of() : this.actionProperties;
}
/**
* @return The properties of an alert payload.
*
*/
public Map customProperties() {
return this.customProperties == null ? Map.of() : this.customProperties;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ActionsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List actionGroups;
private @Nullable Map actionProperties;
private @Nullable Map customProperties;
public Builder() {}
public Builder(ActionsResponse defaults) {
Objects.requireNonNull(defaults);
this.actionGroups = defaults.actionGroups;
this.actionProperties = defaults.actionProperties;
this.customProperties = defaults.customProperties;
}
@CustomType.Setter
public Builder actionGroups(@Nullable List actionGroups) {
this.actionGroups = actionGroups;
return this;
}
public Builder actionGroups(String... actionGroups) {
return actionGroups(List.of(actionGroups));
}
@CustomType.Setter
public Builder actionProperties(@Nullable Map actionProperties) {
this.actionProperties = actionProperties;
return this;
}
@CustomType.Setter
public Builder customProperties(@Nullable Map customProperties) {
this.customProperties = customProperties;
return this;
}
public ActionsResponse build() {
final var _resultValue = new ActionsResponse();
_resultValue.actionGroups = actionGroups;
_resultValue.actionProperties = actionProperties;
_resultValue.customProperties = customProperties;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy