com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetLoadBalancersResult 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.ovhcloud.pulumi.ovh.CloudProject.outputs.GetLoadBalancersLoadbalancer;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetLoadBalancersResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return List of loadbalancer
*
*/
private List loadbalancers;
/**
* @return Region of the loadbalancers
*
*/
private String regionName;
/**
* @return ID of the public cloud project
*
*/
private String serviceName;
private GetLoadBalancersResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return List of loadbalancer
*
*/
public List loadbalancers() {
return this.loadbalancers;
}
/**
* @return Region of the loadbalancers
*
*/
public String regionName() {
return this.regionName;
}
/**
* @return ID of the public cloud project
*
*/
public String serviceName() {
return this.serviceName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLoadBalancersResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List loadbalancers;
private String regionName;
private String serviceName;
public Builder() {}
public Builder(GetLoadBalancersResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.loadbalancers = defaults.loadbalancers;
this.regionName = defaults.regionName;
this.serviceName = defaults.serviceName;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetLoadBalancersResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder loadbalancers(List loadbalancers) {
if (loadbalancers == null) {
throw new MissingRequiredPropertyException("GetLoadBalancersResult", "loadbalancers");
}
this.loadbalancers = loadbalancers;
return this;
}
public Builder loadbalancers(GetLoadBalancersLoadbalancer... loadbalancers) {
return loadbalancers(List.of(loadbalancers));
}
@CustomType.Setter
public Builder regionName(String regionName) {
if (regionName == null) {
throw new MissingRequiredPropertyException("GetLoadBalancersResult", "regionName");
}
this.regionName = regionName;
return this;
}
@CustomType.Setter
public Builder serviceName(String serviceName) {
if (serviceName == null) {
throw new MissingRequiredPropertyException("GetLoadBalancersResult", "serviceName");
}
this.serviceName = serviceName;
return this;
}
public GetLoadBalancersResult build() {
final var _resultValue = new GetLoadBalancersResult();
_resultValue.id = id;
_resultValue.loadbalancers = loadbalancers;
_resultValue.regionName = regionName;
_resultValue.serviceName = serviceName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy