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

com.pulumi.kubernetescertmanager.inputs.CertManagerStartupAPICheckArgs Maven / Gradle / Ivy

The newest version!
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetescertmanager.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.core.v1.inputs.AffinityArgs;
import com.pulumi.kubernetes.core.v1.inputs.PodSecurityContextArgs;
import com.pulumi.kubernetes.core.v1.inputs.ResourceRequirementsArgs;
import com.pulumi.kubernetes.core.v1.inputs.TolerationArgs;
import com.pulumi.kubernetescertmanager.inputs.CertManagerImageArgs;
import com.pulumi.kubernetescertmanager.inputs.CertManagerServiceAccountArgs;
import com.pulumi.kubernetescertmanager.inputs.CertManagerStartupAPICheckRBACArgs;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class CertManagerStartupAPICheckArgs extends com.pulumi.resources.ResourceArgs {

    public static final CertManagerStartupAPICheckArgs Empty = new CertManagerStartupAPICheckArgs();

    @Import(name="affinity")
    private @Nullable Output affinity;

    public Optional> affinity() {
        return Optional.ofNullable(this.affinity);
    }

    /**
     * Job backoffLimit
     * 
     */
    @Import(name="backoffLimit")
    private @Nullable Output backoffLimit;

    /**
     * @return Job backoffLimit
     * 
     */
    public Optional> backoffLimit() {
        return Optional.ofNullable(this.backoffLimit);
    }

    @Import(name="enabled")
    private @Nullable Output enabled;

    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Optional additional arguments for startupapicheck
     * 
     */
    @Import(name="extraArgs")
    private @Nullable Output> extraArgs;

    /**
     * @return Optional additional arguments for startupapicheck
     * 
     */
    public Optional>> extraArgs() {
        return Optional.ofNullable(this.extraArgs);
    }

    @Import(name="image")
    private @Nullable Output image;

    public Optional> image() {
        return Optional.ofNullable(this.image);
    }

    /**
     * Optional additional annotations to add to the startupapicheck Job
     * 
     */
    @Import(name="jobAnnotations")
    private @Nullable Output> jobAnnotations;

    /**
     * @return Optional additional annotations to add to the startupapicheck Job
     * 
     */
    public Optional>> jobAnnotations() {
        return Optional.ofNullable(this.jobAnnotations);
    }

    @Import(name="nodeSelector")
    private @Nullable Output> nodeSelector;

    public Optional>> nodeSelector() {
        return Optional.ofNullable(this.nodeSelector);
    }

    /**
     * Optional additional annotations to add to the startupapicheck Pods
     * 
     */
    @Import(name="podAnnotations")
    private @Nullable Output> podAnnotations;

    /**
     * @return Optional additional annotations to add to the startupapicheck Pods
     * 
     */
    public Optional>> podAnnotations() {
        return Optional.ofNullable(this.podAnnotations);
    }

    /**
     * Optional additional labels to add to the startupapicheck Pods
     * 
     */
    @Import(name="podLabels")
    private @Nullable Output> podLabels;

    /**
     * @return Optional additional labels to add to the startupapicheck Pods
     * 
     */
    public Optional>> podLabels() {
        return Optional.ofNullable(this.podLabels);
    }

    @Import(name="rbac")
    private @Nullable Output rbac;

    public Optional> rbac() {
        return Optional.ofNullable(this.rbac);
    }

    @Import(name="resources")
    private @Nullable Output resources;

    public Optional> resources() {
        return Optional.ofNullable(this.resources);
    }

    /**
     * Pod Security Context to be set on the startupapicheck component Pod. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * 
     */
    @Import(name="securityContext")
    private @Nullable Output securityContext;

    /**
     * @return Pod Security Context to be set on the startupapicheck component Pod. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * 
     */
    public Optional> securityContext() {
        return Optional.ofNullable(this.securityContext);
    }

    @Import(name="serviceAccount")
    private @Nullable Output serviceAccount;

    public Optional> serviceAccount() {
        return Optional.ofNullable(this.serviceAccount);
    }

    /**
     * Timeout for 'kubectl check api' command
     * 
     */
    @Import(name="timeout")
    private @Nullable Output timeout;

    /**
     * @return Timeout for 'kubectl check api' command
     * 
     */
    public Optional> timeout() {
        return Optional.ofNullable(this.timeout);
    }

    @Import(name="tolerations")
    private @Nullable Output> tolerations;

    public Optional>> tolerations() {
        return Optional.ofNullable(this.tolerations);
    }

    private CertManagerStartupAPICheckArgs() {}

    private CertManagerStartupAPICheckArgs(CertManagerStartupAPICheckArgs $) {
        this.affinity = $.affinity;
        this.backoffLimit = $.backoffLimit;
        this.enabled = $.enabled;
        this.extraArgs = $.extraArgs;
        this.image = $.image;
        this.jobAnnotations = $.jobAnnotations;
        this.nodeSelector = $.nodeSelector;
        this.podAnnotations = $.podAnnotations;
        this.podLabels = $.podLabels;
        this.rbac = $.rbac;
        this.resources = $.resources;
        this.securityContext = $.securityContext;
        this.serviceAccount = $.serviceAccount;
        this.timeout = $.timeout;
        this.tolerations = $.tolerations;
    }

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

    public static final class Builder {
        private CertManagerStartupAPICheckArgs $;

        public Builder() {
            $ = new CertManagerStartupAPICheckArgs();
        }

        public Builder(CertManagerStartupAPICheckArgs defaults) {
            $ = new CertManagerStartupAPICheckArgs(Objects.requireNonNull(defaults));
        }

        public Builder affinity(@Nullable Output affinity) {
            $.affinity = affinity;
            return this;
        }

        public Builder affinity(AffinityArgs affinity) {
            return affinity(Output.of(affinity));
        }

        /**
         * @param backoffLimit Job backoffLimit
         * 
         * @return builder
         * 
         */
        public Builder backoffLimit(@Nullable Output backoffLimit) {
            $.backoffLimit = backoffLimit;
            return this;
        }

        /**
         * @param backoffLimit Job backoffLimit
         * 
         * @return builder
         * 
         */
        public Builder backoffLimit(Integer backoffLimit) {
            return backoffLimit(Output.of(backoffLimit));
        }

        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param extraArgs Optional additional arguments for startupapicheck
         * 
         * @return builder
         * 
         */
        public Builder extraArgs(@Nullable Output> extraArgs) {
            $.extraArgs = extraArgs;
            return this;
        }

        /**
         * @param extraArgs Optional additional arguments for startupapicheck
         * 
         * @return builder
         * 
         */
        public Builder extraArgs(List extraArgs) {
            return extraArgs(Output.of(extraArgs));
        }

        /**
         * @param extraArgs Optional additional arguments for startupapicheck
         * 
         * @return builder
         * 
         */
        public Builder extraArgs(String... extraArgs) {
            return extraArgs(List.of(extraArgs));
        }

        public Builder image(@Nullable Output image) {
            $.image = image;
            return this;
        }

        public Builder image(CertManagerImageArgs image) {
            return image(Output.of(image));
        }

        /**
         * @param jobAnnotations Optional additional annotations to add to the startupapicheck Job
         * 
         * @return builder
         * 
         */
        public Builder jobAnnotations(@Nullable Output> jobAnnotations) {
            $.jobAnnotations = jobAnnotations;
            return this;
        }

        /**
         * @param jobAnnotations Optional additional annotations to add to the startupapicheck Job
         * 
         * @return builder
         * 
         */
        public Builder jobAnnotations(Map jobAnnotations) {
            return jobAnnotations(Output.of(jobAnnotations));
        }

        public Builder nodeSelector(@Nullable Output> nodeSelector) {
            $.nodeSelector = nodeSelector;
            return this;
        }

        public Builder nodeSelector(Map nodeSelector) {
            return nodeSelector(Output.of(nodeSelector));
        }

        /**
         * @param podAnnotations Optional additional annotations to add to the startupapicheck Pods
         * 
         * @return builder
         * 
         */
        public Builder podAnnotations(@Nullable Output> podAnnotations) {
            $.podAnnotations = podAnnotations;
            return this;
        }

        /**
         * @param podAnnotations Optional additional annotations to add to the startupapicheck Pods
         * 
         * @return builder
         * 
         */
        public Builder podAnnotations(Map podAnnotations) {
            return podAnnotations(Output.of(podAnnotations));
        }

        /**
         * @param podLabels Optional additional labels to add to the startupapicheck Pods
         * 
         * @return builder
         * 
         */
        public Builder podLabels(@Nullable Output> podLabels) {
            $.podLabels = podLabels;
            return this;
        }

        /**
         * @param podLabels Optional additional labels to add to the startupapicheck Pods
         * 
         * @return builder
         * 
         */
        public Builder podLabels(Map podLabels) {
            return podLabels(Output.of(podLabels));
        }

        public Builder rbac(@Nullable Output rbac) {
            $.rbac = rbac;
            return this;
        }

        public Builder rbac(CertManagerStartupAPICheckRBACArgs rbac) {
            return rbac(Output.of(rbac));
        }

        public Builder resources(@Nullable Output resources) {
            $.resources = resources;
            return this;
        }

        public Builder resources(ResourceRequirementsArgs resources) {
            return resources(Output.of(resources));
        }

        /**
         * @param securityContext Pod Security Context to be set on the startupapicheck component Pod. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
         * 
         * @return builder
         * 
         */
        public Builder securityContext(@Nullable Output securityContext) {
            $.securityContext = securityContext;
            return this;
        }

        /**
         * @param securityContext Pod Security Context to be set on the startupapicheck component Pod. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
         * 
         * @return builder
         * 
         */
        public Builder securityContext(PodSecurityContextArgs securityContext) {
            return securityContext(Output.of(securityContext));
        }

        public Builder serviceAccount(@Nullable Output serviceAccount) {
            $.serviceAccount = serviceAccount;
            return this;
        }

        public Builder serviceAccount(CertManagerServiceAccountArgs serviceAccount) {
            return serviceAccount(Output.of(serviceAccount));
        }

        /**
         * @param timeout Timeout for 'kubectl check api' command
         * 
         * @return builder
         * 
         */
        public Builder timeout(@Nullable Output timeout) {
            $.timeout = timeout;
            return this;
        }

        /**
         * @param timeout Timeout for 'kubectl check api' command
         * 
         * @return builder
         * 
         */
        public Builder timeout(String timeout) {
            return timeout(Output.of(timeout));
        }

        public Builder tolerations(@Nullable Output> tolerations) {
            $.tolerations = tolerations;
            return this;
        }

        public Builder tolerations(List tolerations) {
            return tolerations(Output.of(tolerations));
        }

        public Builder tolerations(TolerationArgs... tolerations) {
            return tolerations(List.of(tolerations));
        }

        public CertManagerStartupAPICheckArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy