com.pulumi.aws.appmesh.inputs.GatewayRouteSpecGrpcRouteActionArgs 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.inputs;
import com.pulumi.aws.appmesh.inputs.GatewayRouteSpecGrpcRouteActionTargetArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
public final class GatewayRouteSpecGrpcRouteActionArgs extends com.pulumi.resources.ResourceArgs {
public static final GatewayRouteSpecGrpcRouteActionArgs Empty = new GatewayRouteSpecGrpcRouteActionArgs();
/**
* Target that traffic is routed to when a request matches the gateway route.
*
*/
@Import(name="target", required=true)
private Output target;
/**
* @return Target that traffic is routed to when a request matches the gateway route.
*
*/
public Output target() {
return this.target;
}
private GatewayRouteSpecGrpcRouteActionArgs() {}
private GatewayRouteSpecGrpcRouteActionArgs(GatewayRouteSpecGrpcRouteActionArgs $) {
this.target = $.target;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GatewayRouteSpecGrpcRouteActionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GatewayRouteSpecGrpcRouteActionArgs $;
public Builder() {
$ = new GatewayRouteSpecGrpcRouteActionArgs();
}
public Builder(GatewayRouteSpecGrpcRouteActionArgs defaults) {
$ = new GatewayRouteSpecGrpcRouteActionArgs(Objects.requireNonNull(defaults));
}
/**
* @param target Target that traffic is routed to when a request matches the gateway route.
*
* @return builder
*
*/
public Builder target(Output target) {
$.target = target;
return this;
}
/**
* @param target Target that traffic is routed to when a request matches the gateway route.
*
* @return builder
*
*/
public Builder target(GatewayRouteSpecGrpcRouteActionTargetArgs target) {
return target(Output.of(target));
}
public GatewayRouteSpecGrpcRouteActionArgs build() {
if ($.target == null) {
throw new MissingRequiredPropertyException("GatewayRouteSpecGrpcRouteActionArgs", "target");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy