
com.pulumi.azurenative.awsconnector.outputs.StatefulRuleResponse 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.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.HeaderResponse;
import com.pulumi.azurenative.awsconnector.outputs.RuleOptionResponse;
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 StatefulRuleResponse {
/**
* @return Property action
*
*/
private @Nullable String action;
/**
* @return Property header
*
*/
private @Nullable HeaderResponse header;
/**
* @return Property ruleOptions
*
*/
private @Nullable List ruleOptions;
private StatefulRuleResponse() {}
/**
* @return Property action
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return Property header
*
*/
public Optional header() {
return Optional.ofNullable(this.header);
}
/**
* @return Property ruleOptions
*
*/
public List ruleOptions() {
return this.ruleOptions == null ? List.of() : this.ruleOptions;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StatefulRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private @Nullable HeaderResponse header;
private @Nullable List ruleOptions;
public Builder() {}
public Builder(StatefulRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.header = defaults.header;
this.ruleOptions = defaults.ruleOptions;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder header(@Nullable HeaderResponse header) {
this.header = header;
return this;
}
@CustomType.Setter
public Builder ruleOptions(@Nullable List ruleOptions) {
this.ruleOptions = ruleOptions;
return this;
}
public Builder ruleOptions(RuleOptionResponse... ruleOptions) {
return ruleOptions(List.of(ruleOptions));
}
public StatefulRuleResponse build() {
final var _resultValue = new StatefulRuleResponse();
_resultValue.action = action;
_resultValue.header = header;
_resultValue.ruleOptions = ruleOptions;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy