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