com.pulumi.cloudngfwaws.inputs.GetRulestackPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudngfwaws Show documentation
Show all versions of cloudngfwaws Show documentation
A Pulumi package for creating and managing Cloud NGFW for AWS 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.cloudngfwaws.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetRulestackPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetRulestackPlainArgs Empty = new GetRulestackPlainArgs();
/**
* Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
*
*/
@Import(name="configType")
private @Nullable String configType;
/**
* @return Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
*
*/
public Optional configType() {
return Optional.ofNullable(this.configType);
}
/**
* The name.
*
*/
@Import(name="name", required=true)
private String name;
/**
* @return The name.
*
*/
public String name() {
return this.name;
}
/**
* The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*
*/
@Import(name="scope")
private @Nullable String scope;
/**
* @return The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*
*/
public Optional scope() {
return Optional.ofNullable(this.scope);
}
private GetRulestackPlainArgs() {}
private GetRulestackPlainArgs(GetRulestackPlainArgs $) {
this.configType = $.configType;
this.name = $.name;
this.scope = $.scope;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRulestackPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetRulestackPlainArgs $;
public Builder() {
$ = new GetRulestackPlainArgs();
}
public Builder(GetRulestackPlainArgs defaults) {
$ = new GetRulestackPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param configType Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
*
* @return builder
*
*/
public Builder configType(@Nullable String configType) {
$.configType = configType;
return this;
}
/**
* @param name The name.
*
* @return builder
*
*/
public Builder name(String name) {
$.name = name;
return this;
}
/**
* @param scope The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*
* @return builder
*
*/
public Builder scope(@Nullable String scope) {
$.scope = scope;
return this;
}
public GetRulestackPlainArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("GetRulestackPlainArgs", "name");
}
return $;
}
}
}