com.pulumi.azurenative.network.outputs.RoutingRuleNextHopResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.network.outputs;
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 RoutingRuleNextHopResponse {
/**
* @return Next hop address. Only required if the next hop type is VirtualAppliance.
*
*/
private @Nullable String nextHopAddress;
/**
* @return Next hop type.
*
*/
private String nextHopType;
private RoutingRuleNextHopResponse() {}
/**
* @return Next hop address. Only required if the next hop type is VirtualAppliance.
*
*/
public Optional nextHopAddress() {
return Optional.ofNullable(this.nextHopAddress);
}
/**
* @return Next hop type.
*
*/
public String nextHopType() {
return this.nextHopType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RoutingRuleNextHopResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String nextHopAddress;
private String nextHopType;
public Builder() {}
public Builder(RoutingRuleNextHopResponse defaults) {
Objects.requireNonNull(defaults);
this.nextHopAddress = defaults.nextHopAddress;
this.nextHopType = defaults.nextHopType;
}
@CustomType.Setter
public Builder nextHopAddress(@Nullable String nextHopAddress) {
this.nextHopAddress = nextHopAddress;
return this;
}
@CustomType.Setter
public Builder nextHopType(String nextHopType) {
if (nextHopType == null) {
throw new MissingRequiredPropertyException("RoutingRuleNextHopResponse", "nextHopType");
}
this.nextHopType = nextHopType;
return this;
}
public RoutingRuleNextHopResponse build() {
final var _resultValue = new RoutingRuleNextHopResponse();
_resultValue.nextHopAddress = nextHopAddress;
_resultValue.nextHopType = nextHopType;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy