com.pulumi.aws.networkfirewall.inputs.FirewallPolicyFirewallPolicyStatelessCustomActionArgs 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.aws.networkfirewall.inputs;
import com.pulumi.aws.networkfirewall.inputs.FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class FirewallPolicyFirewallPolicyStatelessCustomActionArgs extends com.pulumi.resources.ResourceArgs {
public static final FirewallPolicyFirewallPolicyStatelessCustomActionArgs Empty = new FirewallPolicyFirewallPolicyStatelessCustomActionArgs();
/**
* A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details.
*
*/
@Import(name="actionDefinition", required=true)
private Output actionDefinition;
/**
* @return A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details.
*
*/
public Output actionDefinition() {
return this.actionDefinition;
}
/**
* A friendly name of the custom action.
*
*/
@Import(name="actionName", required=true)
private Output actionName;
/**
* @return A friendly name of the custom action.
*
*/
public Output actionName() {
return this.actionName;
}
private FirewallPolicyFirewallPolicyStatelessCustomActionArgs() {}
private FirewallPolicyFirewallPolicyStatelessCustomActionArgs(FirewallPolicyFirewallPolicyStatelessCustomActionArgs $) {
this.actionDefinition = $.actionDefinition;
this.actionName = $.actionName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FirewallPolicyFirewallPolicyStatelessCustomActionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private FirewallPolicyFirewallPolicyStatelessCustomActionArgs $;
public Builder() {
$ = new FirewallPolicyFirewallPolicyStatelessCustomActionArgs();
}
public Builder(FirewallPolicyFirewallPolicyStatelessCustomActionArgs defaults) {
$ = new FirewallPolicyFirewallPolicyStatelessCustomActionArgs(Objects.requireNonNull(defaults));
}
/**
* @param actionDefinition A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details.
*
* @return builder
*
*/
public Builder actionDefinition(Output actionDefinition) {
$.actionDefinition = actionDefinition;
return this;
}
/**
* @param actionDefinition A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details.
*
* @return builder
*
*/
public Builder actionDefinition(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionArgs actionDefinition) {
return actionDefinition(Output.of(actionDefinition));
}
/**
* @param actionName A friendly name of the custom action.
*
* @return builder
*
*/
public Builder actionName(Output actionName) {
$.actionName = actionName;
return this;
}
/**
* @param actionName A friendly name of the custom action.
*
* @return builder
*
*/
public Builder actionName(String actionName) {
return actionName(Output.of(actionName));
}
public FirewallPolicyFirewallPolicyStatelessCustomActionArgs build() {
if ($.actionDefinition == null) {
throw new MissingRequiredPropertyException("FirewallPolicyFirewallPolicyStatelessCustomActionArgs", "actionDefinition");
}
if ($.actionName == null) {
throw new MissingRequiredPropertyException("FirewallPolicyFirewallPolicyStatelessCustomActionArgs", "actionName");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy