com.pulumi.alicloud.cs.outputs.GetKubernetesAddonsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.cs.outputs;
import com.pulumi.alicloud.cs.outputs.GetKubernetesAddonsAddon;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetKubernetesAddonsResult {
/**
* @return A list of addons.
*
*/
private List addons;
/**
* @return The id of kubernetes cluster.
*
*/
private String clusterId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ids;
private @Nullable String nameRegex;
/**
* @return A list of addon names.
*
*/
private List names;
private GetKubernetesAddonsResult() {}
/**
* @return A list of addons.
*
*/
public List addons() {
return this.addons;
}
/**
* @return The id of kubernetes cluster.
*
*/
public String clusterId() {
return this.clusterId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public List ids() {
return this.ids;
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* @return A list of addon names.
*
*/
public List names() {
return this.names;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKubernetesAddonsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List addons;
private String clusterId;
private String id;
private List ids;
private @Nullable String nameRegex;
private List names;
public Builder() {}
public Builder(GetKubernetesAddonsResult defaults) {
Objects.requireNonNull(defaults);
this.addons = defaults.addons;
this.clusterId = defaults.clusterId;
this.id = defaults.id;
this.ids = defaults.ids;
this.nameRegex = defaults.nameRegex;
this.names = defaults.names;
}
@CustomType.Setter
public Builder addons(List addons) {
if (addons == null) {
throw new MissingRequiredPropertyException("GetKubernetesAddonsResult", "addons");
}
this.addons = addons;
return this;
}
public Builder addons(GetKubernetesAddonsAddon... addons) {
return addons(List.of(addons));
}
@CustomType.Setter
public Builder clusterId(String clusterId) {
if (clusterId == null) {
throw new MissingRequiredPropertyException("GetKubernetesAddonsResult", "clusterId");
}
this.clusterId = clusterId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetKubernetesAddonsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetKubernetesAddonsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder nameRegex(@Nullable String nameRegex) {
this.nameRegex = nameRegex;
return this;
}
@CustomType.Setter
public Builder names(List names) {
if (names == null) {
throw new MissingRequiredPropertyException("GetKubernetesAddonsResult", "names");
}
this.names = names;
return this;
}
public Builder names(String... names) {
return names(List.of(names));
}
public GetKubernetesAddonsResult build() {
final var _resultValue = new GetKubernetesAddonsResult();
_resultValue.addons = addons;
_resultValue.clusterId = clusterId;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.nameRegex = nameRegex;
_resultValue.names = names;
return _resultValue;
}
}
}