
com.pulumi.aws.appmesh.outputs.GatewayRouteSpecGrpcRoute 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.GatewayRouteSpecGrpcRouteAction;
import com.pulumi.aws.appmesh.outputs.GatewayRouteSpecGrpcRouteMatch;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
@CustomType
public final class GatewayRouteSpecGrpcRoute {
/**
* @return Action to take if a match is determined.
*
*/
private GatewayRouteSpecGrpcRouteAction action;
/**
* @return Criteria for determining a request match.
*
*/
private GatewayRouteSpecGrpcRouteMatch match;
private GatewayRouteSpecGrpcRoute() {}
/**
* @return Action to take if a match is determined.
*
*/
public GatewayRouteSpecGrpcRouteAction action() {
return this.action;
}
/**
* @return Criteria for determining a request match.
*
*/
public GatewayRouteSpecGrpcRouteMatch match() {
return this.match;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GatewayRouteSpecGrpcRoute defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private GatewayRouteSpecGrpcRouteAction action;
private GatewayRouteSpecGrpcRouteMatch match;
public Builder() {}
public Builder(GatewayRouteSpecGrpcRoute defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.match = defaults.match;
}
@CustomType.Setter
public Builder action(GatewayRouteSpecGrpcRouteAction action) {
if (action == null) {
throw new MissingRequiredPropertyException("GatewayRouteSpecGrpcRoute", "action");
}
this.action = action;
return this;
}
@CustomType.Setter
public Builder match(GatewayRouteSpecGrpcRouteMatch match) {
if (match == null) {
throw new MissingRequiredPropertyException("GatewayRouteSpecGrpcRoute", "match");
}
this.match = match;
return this;
}
public GatewayRouteSpecGrpcRoute build() {
final var _resultValue = new GatewayRouteSpecGrpcRoute();
_resultValue.action = action;
_resultValue.match = match;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy