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

com.pulumi.azurenative.containerinstance.outputs.DeploymentExtensionSpecResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.containerinstance.outputs;

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

@CustomType
public final class DeploymentExtensionSpecResponse {
    /**
     * @return Type of extension to be added.
     * 
     */
    private String extensionType;
    /**
     * @return Name of the extension.
     * 
     */
    private String name;
    /**
     * @return Protected settings for the extension.
     * 
     */
    private @Nullable Object protectedSettings;
    /**
     * @return Settings for the extension.
     * 
     */
    private @Nullable Object settings;
    /**
     * @return Version of the extension being used.
     * 
     */
    private String version;

    private DeploymentExtensionSpecResponse() {}
    /**
     * @return Type of extension to be added.
     * 
     */
    public String extensionType() {
        return this.extensionType;
    }
    /**
     * @return Name of the extension.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Protected settings for the extension.
     * 
     */
    public Optional protectedSettings() {
        return Optional.ofNullable(this.protectedSettings);
    }
    /**
     * @return Settings for the extension.
     * 
     */
    public Optional settings() {
        return Optional.ofNullable(this.settings);
    }
    /**
     * @return Version of the extension being used.
     * 
     */
    public String version() {
        return this.version;
    }

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

    public static Builder builder(DeploymentExtensionSpecResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String extensionType;
        private String name;
        private @Nullable Object protectedSettings;
        private @Nullable Object settings;
        private String version;
        public Builder() {}
        public Builder(DeploymentExtensionSpecResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.extensionType = defaults.extensionType;
    	      this.name = defaults.name;
    	      this.protectedSettings = defaults.protectedSettings;
    	      this.settings = defaults.settings;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder extensionType(String extensionType) {
            if (extensionType == null) {
              throw new MissingRequiredPropertyException("DeploymentExtensionSpecResponse", "extensionType");
            }
            this.extensionType = extensionType;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("DeploymentExtensionSpecResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder protectedSettings(@Nullable Object protectedSettings) {

            this.protectedSettings = protectedSettings;
            return this;
        }
        @CustomType.Setter
        public Builder settings(@Nullable Object settings) {

            this.settings = settings;
            return this;
        }
        @CustomType.Setter
        public Builder version(String version) {
            if (version == null) {
              throw new MissingRequiredPropertyException("DeploymentExtensionSpecResponse", "version");
            }
            this.version = version;
            return this;
        }
        public DeploymentExtensionSpecResponse build() {
            final var _resultValue = new DeploymentExtensionSpecResponse();
            _resultValue.extensionType = extensionType;
            _resultValue.name = name;
            _resultValue.protectedSettings = protectedSettings;
            _resultValue.settings = settings;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}