com.pulumi.scm.outputs.GetRemoteNetworkProtocol 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.scm.outputs.GetRemoteNetworkProtocolBgp;
import com.pulumi.scm.outputs.GetRemoteNetworkProtocolBgpPeer;
import java.util.Objects;
@CustomType
public final class GetRemoteNetworkProtocol {
/**
* @return The Bgp param.
*
*/
private GetRemoteNetworkProtocolBgp bgp;
/**
* @return secondary bgp routing as bgp*peer.
*
*/
private GetRemoteNetworkProtocolBgpPeer bgpPeer;
private GetRemoteNetworkProtocol() {}
/**
* @return The Bgp param.
*
*/
public GetRemoteNetworkProtocolBgp bgp() {
return this.bgp;
}
/**
* @return secondary bgp routing as bgp*peer.
*
*/
public GetRemoteNetworkProtocolBgpPeer bgpPeer() {
return this.bgpPeer;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRemoteNetworkProtocol defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private GetRemoteNetworkProtocolBgp bgp;
private GetRemoteNetworkProtocolBgpPeer bgpPeer;
public Builder() {}
public Builder(GetRemoteNetworkProtocol defaults) {
Objects.requireNonNull(defaults);
this.bgp = defaults.bgp;
this.bgpPeer = defaults.bgpPeer;
}
@CustomType.Setter
public Builder bgp(GetRemoteNetworkProtocolBgp bgp) {
if (bgp == null) {
throw new MissingRequiredPropertyException("GetRemoteNetworkProtocol", "bgp");
}
this.bgp = bgp;
return this;
}
@CustomType.Setter
public Builder bgpPeer(GetRemoteNetworkProtocolBgpPeer bgpPeer) {
if (bgpPeer == null) {
throw new MissingRequiredPropertyException("GetRemoteNetworkProtocol", "bgpPeer");
}
this.bgpPeer = bgpPeer;
return this;
}
public GetRemoteNetworkProtocol build() {
final var _resultValue = new GetRemoteNetworkProtocol();
_resultValue.bgp = bgp;
_resultValue.bgpPeer = bgpPeer;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy