
com.pulumi.junipermist.org.outputs.NetworktemplateAclPolicyAction Maven / Gradle / Ivy
// *** 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.junipermist.org.outputs;
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 NetworktemplateAclPolicyAction {
/**
* @return enum: `allow`, `deny`
*
*/
private @Nullable String action;
private String dstTag;
private NetworktemplateAclPolicyAction() {}
/**
* @return enum: `allow`, `deny`
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
public String dstTag() {
return this.dstTag;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworktemplateAclPolicyAction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private String dstTag;
public Builder() {}
public Builder(NetworktemplateAclPolicyAction defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.dstTag = defaults.dstTag;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder dstTag(String dstTag) {
if (dstTag == null) {
throw new MissingRequiredPropertyException("NetworktemplateAclPolicyAction", "dstTag");
}
this.dstTag = dstTag;
return this;
}
public NetworktemplateAclPolicyAction build() {
final var _resultValue = new NetworktemplateAclPolicyAction();
_resultValue.action = action;
_resultValue.dstTag = dstTag;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy