com.pulumi.azurenative.network.outputs.ApplicationGatewayRewriteRuleResponse 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.
The newest version!
// *** 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.network.outputs;
import com.pulumi.azurenative.network.outputs.ApplicationGatewayRewriteRuleActionSetResponse;
import com.pulumi.azurenative.network.outputs.ApplicationGatewayRewriteRuleConditionResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApplicationGatewayRewriteRuleResponse {
/**
* @return Set of actions to be done as part of the rewrite Rule.
*
*/
private @Nullable ApplicationGatewayRewriteRuleActionSetResponse actionSet;
/**
* @return Conditions based on which the action set execution will be evaluated.
*
*/
private @Nullable List conditions;
/**
* @return Name of the rewrite rule that is unique within an Application Gateway.
*
*/
private @Nullable String name;
/**
* @return Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
*
*/
private @Nullable Integer ruleSequence;
private ApplicationGatewayRewriteRuleResponse() {}
/**
* @return Set of actions to be done as part of the rewrite Rule.
*
*/
public Optional actionSet() {
return Optional.ofNullable(this.actionSet);
}
/**
* @return Conditions based on which the action set execution will be evaluated.
*
*/
public List conditions() {
return this.conditions == null ? List.of() : this.conditions;
}
/**
* @return Name of the rewrite rule that is unique within an Application Gateway.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
*
*/
public Optional ruleSequence() {
return Optional.ofNullable(this.ruleSequence);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplicationGatewayRewriteRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ApplicationGatewayRewriteRuleActionSetResponse actionSet;
private @Nullable List conditions;
private @Nullable String name;
private @Nullable Integer ruleSequence;
public Builder() {}
public Builder(ApplicationGatewayRewriteRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.actionSet = defaults.actionSet;
this.conditions = defaults.conditions;
this.name = defaults.name;
this.ruleSequence = defaults.ruleSequence;
}
@CustomType.Setter
public Builder actionSet(@Nullable ApplicationGatewayRewriteRuleActionSetResponse actionSet) {
this.actionSet = actionSet;
return this;
}
@CustomType.Setter
public Builder conditions(@Nullable List conditions) {
this.conditions = conditions;
return this;
}
public Builder conditions(ApplicationGatewayRewriteRuleConditionResponse... conditions) {
return conditions(List.of(conditions));
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder ruleSequence(@Nullable Integer ruleSequence) {
this.ruleSequence = ruleSequence;
return this;
}
public ApplicationGatewayRewriteRuleResponse build() {
final var _resultValue = new ApplicationGatewayRewriteRuleResponse();
_resultValue.actionSet = actionSet;
_resultValue.conditions = conditions;
_resultValue.name = name;
_resultValue.ruleSequence = ruleSequence;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy