com.ovhcloud.pulumi.ovh.CloudProject.outputs.GatewayExternalInformationIp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH 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.ovhcloud.pulumi.ovh.CloudProject.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GatewayExternalInformationIp {
/**
* @return IP of the interface.
*
*/
private @Nullable String ip;
/**
* @return ID of the subnet.
*
*/
private @Nullable String subnetId;
private GatewayExternalInformationIp() {}
/**
* @return IP of the interface.
*
*/
public Optional ip() {
return Optional.ofNullable(this.ip);
}
/**
* @return ID of the subnet.
*
*/
public Optional subnetId() {
return Optional.ofNullable(this.subnetId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GatewayExternalInformationIp defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String ip;
private @Nullable String subnetId;
public Builder() {}
public Builder(GatewayExternalInformationIp defaults) {
Objects.requireNonNull(defaults);
this.ip = defaults.ip;
this.subnetId = defaults.subnetId;
}
@CustomType.Setter
public Builder ip(@Nullable String ip) {
this.ip = ip;
return this;
}
@CustomType.Setter
public Builder subnetId(@Nullable String subnetId) {
this.subnetId = subnetId;
return this;
}
public GatewayExternalInformationIp build() {
final var _resultValue = new GatewayExternalInformationIp();
_resultValue.ip = ip;
_resultValue.subnetId = subnetId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy