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

com.pulumi.kubernetes.policy.v1beta1.inputs.SELinuxStrategyOptionsPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.policy.v1beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.core.v1.inputs.SELinuxOptionsPatchArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.
 * 
 */
public final class SELinuxStrategyOptionsPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final SELinuxStrategyOptionsPatchArgs Empty = new SELinuxStrategyOptionsPatchArgs();

    /**
     * rule is the strategy that will dictate the allowable labels that may be set.
     * 
     */
    @Import(name="rule")
    private @Nullable Output rule;

    /**
     * @return rule is the strategy that will dictate the allowable labels that may be set.
     * 
     */
    public Optional> rule() {
        return Optional.ofNullable(this.rule);
    }

    /**
     * seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * 
     */
    @Import(name="seLinuxOptions")
    private @Nullable Output seLinuxOptions;

    /**
     * @return seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * 
     */
    public Optional> seLinuxOptions() {
        return Optional.ofNullable(this.seLinuxOptions);
    }

    private SELinuxStrategyOptionsPatchArgs() {}

    private SELinuxStrategyOptionsPatchArgs(SELinuxStrategyOptionsPatchArgs $) {
        this.rule = $.rule;
        this.seLinuxOptions = $.seLinuxOptions;
    }

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

    public static final class Builder {
        private SELinuxStrategyOptionsPatchArgs $;

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

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

        /**
         * @param rule rule is the strategy that will dictate the allowable labels that may be set.
         * 
         * @return builder
         * 
         */
        public Builder rule(@Nullable Output rule) {
            $.rule = rule;
            return this;
        }

        /**
         * @param rule rule is the strategy that will dictate the allowable labels that may be set.
         * 
         * @return builder
         * 
         */
        public Builder rule(String rule) {
            return rule(Output.of(rule));
        }

        /**
         * @param seLinuxOptions seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
         * 
         * @return builder
         * 
         */
        public Builder seLinuxOptions(@Nullable Output seLinuxOptions) {
            $.seLinuxOptions = seLinuxOptions;
            return this;
        }

        /**
         * @param seLinuxOptions seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
         * 
         * @return builder
         * 
         */
        public Builder seLinuxOptions(SELinuxOptionsPatchArgs seLinuxOptions) {
            return seLinuxOptions(Output.of(seLinuxOptions));
        }

        public SELinuxStrategyOptionsPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy