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

com.pulumi.alicloud.eci.inputs.ContainerGroupInitContainerSecurityContextArgs 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.eci.inputs;

import com.pulumi.alicloud.eci.inputs.ContainerGroupInitContainerSecurityContextCapabilityArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ContainerGroupInitContainerSecurityContextArgs Empty = new ContainerGroupInitContainerSecurityContextArgs();

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

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

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

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

    private ContainerGroupInitContainerSecurityContextArgs() {}

    private ContainerGroupInitContainerSecurityContextArgs(ContainerGroupInitContainerSecurityContextArgs $) {
        this.capabilities = $.capabilities;
        this.runAsUser = $.runAsUser;
    }

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

    public static final class Builder {
        private ContainerGroupInitContainerSecurityContextArgs $;

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

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

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

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

        public Builder capabilities(ContainerGroupInitContainerSecurityContextCapabilityArgs... capabilities) {
            return capabilities(List.of(capabilities));
        }

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

        public Builder runAsUser(Integer runAsUser) {
            return runAsUser(Output.of(runAsUser));
        }

        public ContainerGroupInitContainerSecurityContextArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy