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

com.pulumi.docker.outputs.GetPluginResult Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
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.docker.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetPluginResult {
    /**
     * @return The alias of the Docker plugin. If the tag is omitted, `:latest` is complemented to the attribute value.
     * 
     */
    private @Nullable String alias;
    /**
     * @return If `true` the plugin is enabled
     * 
     */
    private Boolean enabled;
    /**
     * @return The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
     * 
     */
    private List envs;
    /**
     * @return If true, grant all permissions necessary to run the plugin
     * 
     */
    private Boolean grantAllPermissions;
    /**
     * @return The ID of the plugin, which has precedence over the `alias` of both are given
     * 
     */
    private @Nullable String id;
    /**
     * @return The plugin name. If the tag is omitted, `:latest` is complemented to the attribute value.
     * 
     */
    private String name;
    /**
     * @return The Docker Plugin Reference
     * 
     */
    private String pluginReference;

    private GetPluginResult() {}
    /**
     * @return The alias of the Docker plugin. If the tag is omitted, `:latest` is complemented to the attribute value.
     * 
     */
    public Optional alias() {
        return Optional.ofNullable(this.alias);
    }
    /**
     * @return If `true` the plugin is enabled
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
     * 
     */
    public List envs() {
        return this.envs;
    }
    /**
     * @return If true, grant all permissions necessary to run the plugin
     * 
     */
    public Boolean grantAllPermissions() {
        return this.grantAllPermissions;
    }
    /**
     * @return The ID of the plugin, which has precedence over the `alias` of both are given
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The plugin name. If the tag is omitted, `:latest` is complemented to the attribute value.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The Docker Plugin Reference
     * 
     */
    public String pluginReference() {
        return this.pluginReference;
    }

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

    public static Builder builder(GetPluginResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String alias;
        private Boolean enabled;
        private List envs;
        private Boolean grantAllPermissions;
        private @Nullable String id;
        private String name;
        private String pluginReference;
        public Builder() {}
        public Builder(GetPluginResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alias = defaults.alias;
    	      this.enabled = defaults.enabled;
    	      this.envs = defaults.envs;
    	      this.grantAllPermissions = defaults.grantAllPermissions;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.pluginReference = defaults.pluginReference;
        }

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

            this.alias = alias;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            if (enabled == null) {
              throw new MissingRequiredPropertyException("GetPluginResult", "enabled");
            }
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder envs(List envs) {
            if (envs == null) {
              throw new MissingRequiredPropertyException("GetPluginResult", "envs");
            }
            this.envs = envs;
            return this;
        }
        public Builder envs(String... envs) {
            return envs(List.of(envs));
        }
        @CustomType.Setter
        public Builder grantAllPermissions(Boolean grantAllPermissions) {
            if (grantAllPermissions == null) {
              throw new MissingRequiredPropertyException("GetPluginResult", "grantAllPermissions");
            }
            this.grantAllPermissions = grantAllPermissions;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPluginResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder pluginReference(String pluginReference) {
            if (pluginReference == null) {
              throw new MissingRequiredPropertyException("GetPluginResult", "pluginReference");
            }
            this.pluginReference = pluginReference;
            return this;
        }
        public GetPluginResult build() {
            final var _resultValue = new GetPluginResult();
            _resultValue.alias = alias;
            _resultValue.enabled = enabled;
            _resultValue.envs = envs;
            _resultValue.grantAllPermissions = grantAllPermissions;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.pluginReference = pluginReference;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy