com.pulumi.consul.outputs.ConfigEntryServiceRouterRoute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul Show documentation
Show all versions of consul Show documentation
A Pulumi package for creating and managing consul 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.consul.outputs;
import com.pulumi.consul.outputs.ConfigEntryServiceRouterRouteDestination;
import com.pulumi.consul.outputs.ConfigEntryServiceRouterRouteMatch;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConfigEntryServiceRouterRoute {
/**
* @return Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
*
*/
private @Nullable ConfigEntryServiceRouterRouteDestination destination;
/**
* @return Describes a set of criteria that Consul compares incoming L7 traffic with.
*
*/
private @Nullable ConfigEntryServiceRouterRouteMatch match;
private ConfigEntryServiceRouterRoute() {}
/**
* @return Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
*
*/
public Optional destination() {
return Optional.ofNullable(this.destination);
}
/**
* @return Describes a set of criteria that Consul compares incoming L7 traffic with.
*
*/
public Optional match() {
return Optional.ofNullable(this.match);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConfigEntryServiceRouterRoute defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ConfigEntryServiceRouterRouteDestination destination;
private @Nullable ConfigEntryServiceRouterRouteMatch match;
public Builder() {}
public Builder(ConfigEntryServiceRouterRoute defaults) {
Objects.requireNonNull(defaults);
this.destination = defaults.destination;
this.match = defaults.match;
}
@CustomType.Setter
public Builder destination(@Nullable ConfigEntryServiceRouterRouteDestination destination) {
this.destination = destination;
return this;
}
@CustomType.Setter
public Builder match(@Nullable ConfigEntryServiceRouterRouteMatch match) {
this.match = match;
return this;
}
public ConfigEntryServiceRouterRoute build() {
final var _resultValue = new ConfigEntryServiceRouterRoute();
_resultValue.destination = destination;
_resultValue.match = match;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy