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

com.pulumi.kubernetes.policy.v1beta1.outputs.SELinuxStrategyOptionsPatch 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.core.v1.outputs.SELinuxOptionsPatch;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SELinuxStrategyOptionsPatch {
    /**
     * @return rule is the strategy that will dictate the allowable labels that may be set.
     * 
     */
    private @Nullable String rule;
    /**
     * @return seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * 
     */
    private @Nullable SELinuxOptionsPatch seLinuxOptions;

    private SELinuxStrategyOptionsPatch() {}
    /**
     * @return rule is the strategy that will dictate the allowable labels that may be set.
     * 
     */
    public Optional rule() {
        return Optional.ofNullable(this.rule);
    }
    /**
     * @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);
    }

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

    public static Builder builder(SELinuxStrategyOptionsPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String rule;
        private @Nullable SELinuxOptionsPatch seLinuxOptions;
        public Builder() {}
        public Builder(SELinuxStrategyOptionsPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.rule = defaults.rule;
    	      this.seLinuxOptions = defaults.seLinuxOptions;
        }

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

            this.rule = rule;
            return this;
        }
        @CustomType.Setter
        public Builder seLinuxOptions(@Nullable SELinuxOptionsPatch seLinuxOptions) {

            this.seLinuxOptions = seLinuxOptions;
            return this;
        }
        public SELinuxStrategyOptionsPatch build() {
            final var _resultValue = new SELinuxStrategyOptionsPatch();
            _resultValue.rule = rule;
            _resultValue.seLinuxOptions = seLinuxOptions;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy