com.pulumi.azurenative.network.outputs.ApplicationGatewayRewriteRuleActionSetResponse 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.
// *** 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.ApplicationGatewayHeaderConfigurationResponse;
import com.pulumi.azurenative.network.outputs.ApplicationGatewayUrlConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApplicationGatewayRewriteRuleActionSetResponse {
/**
* @return Request Header Actions in the Action Set.
*
*/
private @Nullable List requestHeaderConfigurations;
/**
* @return Response Header Actions in the Action Set.
*
*/
private @Nullable List responseHeaderConfigurations;
/**
* @return Url Configuration Action in the Action Set.
*
*/
private @Nullable ApplicationGatewayUrlConfigurationResponse urlConfiguration;
private ApplicationGatewayRewriteRuleActionSetResponse() {}
/**
* @return Request Header Actions in the Action Set.
*
*/
public List requestHeaderConfigurations() {
return this.requestHeaderConfigurations == null ? List.of() : this.requestHeaderConfigurations;
}
/**
* @return Response Header Actions in the Action Set.
*
*/
public List responseHeaderConfigurations() {
return this.responseHeaderConfigurations == null ? List.of() : this.responseHeaderConfigurations;
}
/**
* @return Url Configuration Action in the Action Set.
*
*/
public Optional urlConfiguration() {
return Optional.ofNullable(this.urlConfiguration);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplicationGatewayRewriteRuleActionSetResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List requestHeaderConfigurations;
private @Nullable List responseHeaderConfigurations;
private @Nullable ApplicationGatewayUrlConfigurationResponse urlConfiguration;
public Builder() {}
public Builder(ApplicationGatewayRewriteRuleActionSetResponse defaults) {
Objects.requireNonNull(defaults);
this.requestHeaderConfigurations = defaults.requestHeaderConfigurations;
this.responseHeaderConfigurations = defaults.responseHeaderConfigurations;
this.urlConfiguration = defaults.urlConfiguration;
}
@CustomType.Setter
public Builder requestHeaderConfigurations(@Nullable List requestHeaderConfigurations) {
this.requestHeaderConfigurations = requestHeaderConfigurations;
return this;
}
public Builder requestHeaderConfigurations(ApplicationGatewayHeaderConfigurationResponse... requestHeaderConfigurations) {
return requestHeaderConfigurations(List.of(requestHeaderConfigurations));
}
@CustomType.Setter
public Builder responseHeaderConfigurations(@Nullable List responseHeaderConfigurations) {
this.responseHeaderConfigurations = responseHeaderConfigurations;
return this;
}
public Builder responseHeaderConfigurations(ApplicationGatewayHeaderConfigurationResponse... responseHeaderConfigurations) {
return responseHeaderConfigurations(List.of(responseHeaderConfigurations));
}
@CustomType.Setter
public Builder urlConfiguration(@Nullable ApplicationGatewayUrlConfigurationResponse urlConfiguration) {
this.urlConfiguration = urlConfiguration;
return this;
}
public ApplicationGatewayRewriteRuleActionSetResponse build() {
final var _resultValue = new ApplicationGatewayRewriteRuleActionSetResponse();
_resultValue.requestHeaderConfigurations = requestHeaderConfigurations;
_resultValue.responseHeaderConfigurations = responseHeaderConfigurations;
_resultValue.urlConfiguration = urlConfiguration;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy