com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetKubeIpRestrictionsResult 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetKubeIpRestrictionsResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The list of CIDRs that restricts the access to the API server.
*
*/
private List ips;
/**
* @return See Argument Reference above.
*
*/
private String kubeId;
/**
* @return See Argument Reference above.
*
*/
private String serviceName;
private GetKubeIpRestrictionsResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The list of CIDRs that restricts the access to the API server.
*
*/
public List ips() {
return this.ips;
}
/**
* @return See Argument Reference above.
*
*/
public String kubeId() {
return this.kubeId;
}
/**
* @return See Argument Reference above.
*
*/
public String serviceName() {
return this.serviceName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKubeIpRestrictionsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List ips;
private String kubeId;
private String serviceName;
public Builder() {}
public Builder(GetKubeIpRestrictionsResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.ips = defaults.ips;
this.kubeId = defaults.kubeId;
this.serviceName = defaults.serviceName;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetKubeIpRestrictionsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ips(List ips) {
if (ips == null) {
throw new MissingRequiredPropertyException("GetKubeIpRestrictionsResult", "ips");
}
this.ips = ips;
return this;
}
public Builder ips(String... ips) {
return ips(List.of(ips));
}
@CustomType.Setter
public Builder kubeId(String kubeId) {
if (kubeId == null) {
throw new MissingRequiredPropertyException("GetKubeIpRestrictionsResult", "kubeId");
}
this.kubeId = kubeId;
return this;
}
@CustomType.Setter
public Builder serviceName(String serviceName) {
if (serviceName == null) {
throw new MissingRequiredPropertyException("GetKubeIpRestrictionsResult", "serviceName");
}
this.serviceName = serviceName;
return this;
}
public GetKubeIpRestrictionsResult build() {
final var _resultValue = new GetKubeIpRestrictionsResult();
_resultValue.id = id;
_resultValue.ips = ips;
_resultValue.kubeId = kubeId;
_resultValue.serviceName = serviceName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy