com.pulumi.aws.appmesh.outputs.RouteSpecHttp2RouteMatchQueryParameter Maven / Gradle / Ivy
// *** 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.RouteSpecHttp2RouteMatchQueryParameterMatch;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RouteSpecHttp2RouteMatchQueryParameter {
/**
* @return The query parameter to match on.
*
*/
private @Nullable RouteSpecHttp2RouteMatchQueryParameterMatch match;
/**
* @return Name for the query parameter that will be matched on.
*
*/
private String name;
private RouteSpecHttp2RouteMatchQueryParameter() {}
/**
* @return The query parameter to match on.
*
*/
public Optional match() {
return Optional.ofNullable(this.match);
}
/**
* @return Name for the query parameter that will be matched on.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteSpecHttp2RouteMatchQueryParameter defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable RouteSpecHttp2RouteMatchQueryParameterMatch match;
private String name;
public Builder() {}
public Builder(RouteSpecHttp2RouteMatchQueryParameter defaults) {
Objects.requireNonNull(defaults);
this.match = defaults.match;
this.name = defaults.name;
}
@CustomType.Setter
public Builder match(@Nullable RouteSpecHttp2RouteMatchQueryParameterMatch match) {
this.match = match;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("RouteSpecHttp2RouteMatchQueryParameter", "name");
}
this.name = name;
return this;
}
public RouteSpecHttp2RouteMatchQueryParameter build() {
final var _resultValue = new RouteSpecHttp2RouteMatchQueryParameter();
_resultValue.match = match;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy