
com.pulumi.aws.appmesh.inputs.GatewayRouteSpecGrpcRouteArgs 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.GatewayRouteSpecGrpcRouteActionArgs;
import com.pulumi.aws.appmesh.inputs.GatewayRouteSpecGrpcRouteMatchArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
public final class GatewayRouteSpecGrpcRouteArgs extends com.pulumi.resources.ResourceArgs {
public static final GatewayRouteSpecGrpcRouteArgs Empty = new GatewayRouteSpecGrpcRouteArgs();
/**
* Action to take if a match is determined.
*
*/
@Import(name="action", required=true)
private Output action;
/**
* @return Action to take if a match is determined.
*
*/
public Output action() {
return this.action;
}
/**
* Criteria for determining a request match.
*
*/
@Import(name="match", required=true)
private Output match;
/**
* @return Criteria for determining a request match.
*
*/
public Output match() {
return this.match;
}
private GatewayRouteSpecGrpcRouteArgs() {}
private GatewayRouteSpecGrpcRouteArgs(GatewayRouteSpecGrpcRouteArgs $) {
this.action = $.action;
this.match = $.match;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GatewayRouteSpecGrpcRouteArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GatewayRouteSpecGrpcRouteArgs $;
public Builder() {
$ = new GatewayRouteSpecGrpcRouteArgs();
}
public Builder(GatewayRouteSpecGrpcRouteArgs defaults) {
$ = new GatewayRouteSpecGrpcRouteArgs(Objects.requireNonNull(defaults));
}
/**
* @param action Action to take if a match is determined.
*
* @return builder
*
*/
public Builder action(Output action) {
$.action = action;
return this;
}
/**
* @param action Action to take if a match is determined.
*
* @return builder
*
*/
public Builder action(GatewayRouteSpecGrpcRouteActionArgs action) {
return action(Output.of(action));
}
/**
* @param match Criteria for determining a request match.
*
* @return builder
*
*/
public Builder match(Output match) {
$.match = match;
return this;
}
/**
* @param match Criteria for determining a request match.
*
* @return builder
*
*/
public Builder match(GatewayRouteSpecGrpcRouteMatchArgs match) {
return match(Output.of(match));
}
public GatewayRouteSpecGrpcRouteArgs build() {
if ($.action == null) {
throw new MissingRequiredPropertyException("GatewayRouteSpecGrpcRouteArgs", "action");
}
if ($.match == null) {
throw new MissingRequiredPropertyException("GatewayRouteSpecGrpcRouteArgs", "match");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy