com.pulumi.aws.appmesh.outputs.GetGatewayRouteSpecHttp2RouteActionRewrite Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.appmesh.outputs;
import com.pulumi.aws.appmesh.outputs.GetGatewayRouteSpecHttp2RouteActionRewriteHostname;
import com.pulumi.aws.appmesh.outputs.GetGatewayRouteSpecHttp2RouteActionRewritePath;
import com.pulumi.aws.appmesh.outputs.GetGatewayRouteSpecHttp2RouteActionRewritePrefix;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetGatewayRouteSpecHttp2RouteActionRewrite {
private List hostnames;
private List paths;
private List prefixes;
private GetGatewayRouteSpecHttp2RouteActionRewrite() {}
public List hostnames() {
return this.hostnames;
}
public List paths() {
return this.paths;
}
public List prefixes() {
return this.prefixes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGatewayRouteSpecHttp2RouteActionRewrite defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List hostnames;
private List paths;
private List prefixes;
public Builder() {}
public Builder(GetGatewayRouteSpecHttp2RouteActionRewrite defaults) {
Objects.requireNonNull(defaults);
this.hostnames = defaults.hostnames;
this.paths = defaults.paths;
this.prefixes = defaults.prefixes;
}
@CustomType.Setter
public Builder hostnames(List hostnames) {
if (hostnames == null) {
throw new MissingRequiredPropertyException("GetGatewayRouteSpecHttp2RouteActionRewrite", "hostnames");
}
this.hostnames = hostnames;
return this;
}
public Builder hostnames(GetGatewayRouteSpecHttp2RouteActionRewriteHostname... hostnames) {
return hostnames(List.of(hostnames));
}
@CustomType.Setter
public Builder paths(List paths) {
if (paths == null) {
throw new MissingRequiredPropertyException("GetGatewayRouteSpecHttp2RouteActionRewrite", "paths");
}
this.paths = paths;
return this;
}
public Builder paths(GetGatewayRouteSpecHttp2RouteActionRewritePath... paths) {
return paths(List.of(paths));
}
@CustomType.Setter
public Builder prefixes(List prefixes) {
if (prefixes == null) {
throw new MissingRequiredPropertyException("GetGatewayRouteSpecHttp2RouteActionRewrite", "prefixes");
}
this.prefixes = prefixes;
return this;
}
public Builder prefixes(GetGatewayRouteSpecHttp2RouteActionRewritePrefix... prefixes) {
return prefixes(List.of(prefixes));
}
public GetGatewayRouteSpecHttp2RouteActionRewrite build() {
final var _resultValue = new GetGatewayRouteSpecHttp2RouteActionRewrite();
_resultValue.hostnames = hostnames;
_resultValue.paths = paths;
_resultValue.prefixes = prefixes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy