com.pulumi.aws.appmesh.outputs.GetGatewayRouteSpecHttp2RouteAction 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.
// *** 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.GetGatewayRouteSpecHttp2RouteActionRewrite;
import com.pulumi.aws.appmesh.outputs.GetGatewayRouteSpecHttp2RouteActionTarget;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetGatewayRouteSpecHttp2RouteAction {
private List rewrites;
private List targets;
private GetGatewayRouteSpecHttp2RouteAction() {}
public List rewrites() {
return this.rewrites;
}
public List targets() {
return this.targets;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGatewayRouteSpecHttp2RouteAction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List rewrites;
private List targets;
public Builder() {}
public Builder(GetGatewayRouteSpecHttp2RouteAction defaults) {
Objects.requireNonNull(defaults);
this.rewrites = defaults.rewrites;
this.targets = defaults.targets;
}
@CustomType.Setter
public Builder rewrites(List rewrites) {
if (rewrites == null) {
throw new MissingRequiredPropertyException("GetGatewayRouteSpecHttp2RouteAction", "rewrites");
}
this.rewrites = rewrites;
return this;
}
public Builder rewrites(GetGatewayRouteSpecHttp2RouteActionRewrite... rewrites) {
return rewrites(List.of(rewrites));
}
@CustomType.Setter
public Builder targets(List targets) {
if (targets == null) {
throw new MissingRequiredPropertyException("GetGatewayRouteSpecHttp2RouteAction", "targets");
}
this.targets = targets;
return this;
}
public Builder targets(GetGatewayRouteSpecHttp2RouteActionTarget... targets) {
return targets(List.of(targets));
}
public GetGatewayRouteSpecHttp2RouteAction build() {
final var _resultValue = new GetGatewayRouteSpecHttp2RouteAction();
_resultValue.rewrites = rewrites;
_resultValue.targets = targets;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy