com.pulumi.alicloud.cs.outputs.KubernetesAddon 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.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KubernetesAddon {
/**
* @return The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
*
*/
private @Nullable String config;
/**
* @return Disables the automatic installation of a component. Default is `false`.
*
* The following example is the definition of addons block, The type of this field is list:
*
*/
private @Nullable Boolean disabled;
/**
* @return Name of the ACK add-on. The name must match one of the names returned by [DescribeAddons](https://help.aliyun.com/document_detail/171524.html).
*
*/
private @Nullable String name;
/**
* @return The version of the component.
*
*/
private @Nullable String version;
private KubernetesAddon() {}
/**
* @return The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
*
*/
public Optional config() {
return Optional.ofNullable(this.config);
}
/**
* @return Disables the automatic installation of a component. Default is `false`.
*
* The following example is the definition of addons block, The type of this field is list:
*
*/
public Optional disabled() {
return Optional.ofNullable(this.disabled);
}
/**
* @return Name of the ACK add-on. The name must match one of the names returned by [DescribeAddons](https://help.aliyun.com/document_detail/171524.html).
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The version of the component.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KubernetesAddon defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String config;
private @Nullable Boolean disabled;
private @Nullable String name;
private @Nullable String version;
public Builder() {}
public Builder(KubernetesAddon defaults) {
Objects.requireNonNull(defaults);
this.config = defaults.config;
this.disabled = defaults.disabled;
this.name = defaults.name;
this.version = defaults.version;
}
@CustomType.Setter
public Builder config(@Nullable String config) {
this.config = config;
return this;
}
@CustomType.Setter
public Builder disabled(@Nullable Boolean disabled) {
this.disabled = disabled;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public KubernetesAddon build() {
final var _resultValue = new KubernetesAddon();
_resultValue.config = config;
_resultValue.disabled = disabled;
_resultValue.name = name;
_resultValue.version = version;
return _resultValue;
}
}
}