com.pulumi.azurenative.alertsmanagement.outputs.ScopeResponse 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.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 ScopeResponse {
/**
* @return type of target scope
*
*/
private @Nullable String scopeType;
/**
* @return list of ARM IDs of the given scope type which will be the target of the given action rule.
*
*/
private @Nullable List values;
private ScopeResponse() {}
/**
* @return type of target scope
*
*/
public Optional scopeType() {
return Optional.ofNullable(this.scopeType);
}
/**
* @return list of ARM IDs of the given scope type which will be the target of the given action rule.
*
*/
public List values() {
return this.values == null ? List.of() : this.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScopeResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String scopeType;
private @Nullable List values;
public Builder() {}
public Builder(ScopeResponse defaults) {
Objects.requireNonNull(defaults);
this.scopeType = defaults.scopeType;
this.values = defaults.values;
}
@CustomType.Setter
public Builder scopeType(@Nullable String scopeType) {
this.scopeType = scopeType;
return this;
}
@CustomType.Setter
public Builder values(@Nullable List values) {
this.values = values;
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
public ScopeResponse build() {
final var _resultValue = new ScopeResponse();
_resultValue.scopeType = scopeType;
_resultValue.values = values;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy