All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.cs.outputs.ManagedKubernetesDeleteOption Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ManagedKubernetesDeleteOption {
    /**
     * @return The deletion mode of the cluster. Different resources may have different default behavior, see `resource_type` for details. Valid values:
     * 
     */
    private @Nullable String deleteMode;
    /**
     * @return The type of resources that are created by cluster. Valid values:
     * - `SLB`: SLB resources created by the Nginx Ingress Service, default behavior is to delete, option to retain is available.
     * - `ALB`: ALB resources created by the ALB Ingress Controller, default behavior is to retain, option to delete is available.
     * - `SLS_Data`: SLS Project used by the cluster logging feature, default behavior is to retain, option to delete is available.
     * - `SLS_ControlPlane`: SLS Project used for the managed cluster control plane logs, default behavior is to retain, option to delete is available.
     * 
     */
    private @Nullable String resourceType;

    private ManagedKubernetesDeleteOption() {}
    /**
     * @return The deletion mode of the cluster. Different resources may have different default behavior, see `resource_type` for details. Valid values:
     * 
     */
    public Optional deleteMode() {
        return Optional.ofNullable(this.deleteMode);
    }
    /**
     * @return The type of resources that are created by cluster. Valid values:
     * - `SLB`: SLB resources created by the Nginx Ingress Service, default behavior is to delete, option to retain is available.
     * - `ALB`: ALB resources created by the ALB Ingress Controller, default behavior is to retain, option to delete is available.
     * - `SLS_Data`: SLS Project used by the cluster logging feature, default behavior is to retain, option to delete is available.
     * - `SLS_ControlPlane`: SLS Project used for the managed cluster control plane logs, default behavior is to retain, option to delete is available.
     * 
     */
    public Optional resourceType() {
        return Optional.ofNullable(this.resourceType);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ManagedKubernetesDeleteOption defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String deleteMode;
        private @Nullable String resourceType;
        public Builder() {}
        public Builder(ManagedKubernetesDeleteOption defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deleteMode = defaults.deleteMode;
    	      this.resourceType = defaults.resourceType;
        }

        @CustomType.Setter
        public Builder deleteMode(@Nullable String deleteMode) {

            this.deleteMode = deleteMode;
            return this;
        }
        @CustomType.Setter
        public Builder resourceType(@Nullable String resourceType) {

            this.resourceType = resourceType;
            return this;
        }
        public ManagedKubernetesDeleteOption build() {
            final var _resultValue = new ManagedKubernetesDeleteOption();
            _resultValue.deleteMode = deleteMode;
            _resultValue.resourceType = resourceType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy