com.ovhcloud.pulumi.ovh.CloudProject.inputs.GetFailoverIpAttachPlainArgs 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.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetFailoverIpAttachPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetFailoverIpAttachPlainArgs Empty = new GetFailoverIpAttachPlainArgs();
/**
* The IP block
* * `continentCode` - The Ip continent
*
*/
@Import(name="block")
private @Nullable String block;
/**
* @return The IP block
* * `continentCode` - The Ip continent
*
*/
public Optional block() {
return Optional.ofNullable(this.block);
}
@Import(name="continentCode")
private @Nullable String continentCode;
public Optional continentCode() {
return Optional.ofNullable(this.continentCode);
}
@Import(name="geoLoc")
private @Nullable String geoLoc;
public Optional geoLoc() {
return Optional.ofNullable(this.geoLoc);
}
/**
* The failover ip address to query
*
*/
@Import(name="ip")
private @Nullable String ip;
/**
* @return The failover ip address to query
*
*/
public Optional ip() {
return Optional.ofNullable(this.ip);
}
@Import(name="routedTo")
private @Nullable String routedTo;
public Optional routedTo() {
return Optional.ofNullable(this.routedTo);
}
/**
* The id of the public cloud project. If omitted,
* the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
*
*/
@Import(name="serviceName", required=true)
private String serviceName;
/**
* @return The id of the public cloud project. If omitted,
* the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
*
*/
public String serviceName() {
return this.serviceName;
}
private GetFailoverIpAttachPlainArgs() {}
private GetFailoverIpAttachPlainArgs(GetFailoverIpAttachPlainArgs $) {
this.block = $.block;
this.continentCode = $.continentCode;
this.geoLoc = $.geoLoc;
this.ip = $.ip;
this.routedTo = $.routedTo;
this.serviceName = $.serviceName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetFailoverIpAttachPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetFailoverIpAttachPlainArgs $;
public Builder() {
$ = new GetFailoverIpAttachPlainArgs();
}
public Builder(GetFailoverIpAttachPlainArgs defaults) {
$ = new GetFailoverIpAttachPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param block The IP block
* * `continentCode` - The Ip continent
*
* @return builder
*
*/
public Builder block(@Nullable String block) {
$.block = block;
return this;
}
public Builder continentCode(@Nullable String continentCode) {
$.continentCode = continentCode;
return this;
}
public Builder geoLoc(@Nullable String geoLoc) {
$.geoLoc = geoLoc;
return this;
}
/**
* @param ip The failover ip address to query
*
* @return builder
*
*/
public Builder ip(@Nullable String ip) {
$.ip = ip;
return this;
}
public Builder routedTo(@Nullable String routedTo) {
$.routedTo = routedTo;
return this;
}
/**
* @param serviceName The id of the public cloud project. If omitted,
* the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
*
* @return builder
*
*/
public Builder serviceName(String serviceName) {
$.serviceName = serviceName;
return this;
}
public GetFailoverIpAttachPlainArgs build() {
if ($.serviceName == null) {
throw new MissingRequiredPropertyException("GetFailoverIpAttachPlainArgs", "serviceName");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy