com.pulumi.linode.outputs.GetLkeClusterControlPlaneAcl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode cloud 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.pulumi.linode.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetLkeClusterControlPlaneAclAddress;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetLkeClusterControlPlaneAcl {
/**
* @return A list of ip addresses to allow.
*
*/
private @Nullable List addresses;
/**
* @return The default policy. A value of true means a default policy of DENY. A value of false means a default policy of ALLOW.
*
*/
private Boolean enabled;
private GetLkeClusterControlPlaneAcl() {}
/**
* @return A list of ip addresses to allow.
*
*/
public List addresses() {
return this.addresses == null ? List.of() : this.addresses;
}
/**
* @return The default policy. A value of true means a default policy of DENY. A value of false means a default policy of ALLOW.
*
*/
public Boolean enabled() {
return this.enabled;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLkeClusterControlPlaneAcl defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List addresses;
private Boolean enabled;
public Builder() {}
public Builder(GetLkeClusterControlPlaneAcl defaults) {
Objects.requireNonNull(defaults);
this.addresses = defaults.addresses;
this.enabled = defaults.enabled;
}
@CustomType.Setter
public Builder addresses(@Nullable List addresses) {
this.addresses = addresses;
return this;
}
public Builder addresses(GetLkeClusterControlPlaneAclAddress... addresses) {
return addresses(List.of(addresses));
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("GetLkeClusterControlPlaneAcl", "enabled");
}
this.enabled = enabled;
return this;
}
public GetLkeClusterControlPlaneAcl build() {
final var _resultValue = new GetLkeClusterControlPlaneAcl();
_resultValue.addresses = addresses;
_resultValue.enabled = enabled;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy