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

com.pulumi.azurenative.servicefabricmesh.outputs.ContainerCodePackagePropertiesResponse Maven / Gradle / Ivy

// *** 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.servicefabricmesh.outputs;

import com.pulumi.azurenative.servicefabricmesh.outputs.ApplicationScopedVolumeResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.ContainerInstanceViewResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.ContainerLabelResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.DiagnosticsRefResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.EndpointPropertiesResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.EnvironmentVariableResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.ImageRegistryCredentialResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.ReliableCollectionsRefResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.ResourceRequirementsResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.SettingResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.VolumeReferenceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContainerCodePackagePropertiesResponse {
    /**
     * @return Command array to execute within the container in exec form.
     * 
     */
    private @Nullable List commands;
    /**
     * @return Reference to sinks in DiagnosticsDescription.
     * 
     */
    private @Nullable DiagnosticsRefResponse diagnostics;
    /**
     * @return The endpoints exposed by this container.
     * 
     */
    private @Nullable List endpoints;
    /**
     * @return Override for the default entry point in the container.
     * 
     */
    private @Nullable String entrypoint;
    /**
     * @return The environment variables to set in this container
     * 
     */
    private @Nullable List environmentVariables;
    /**
     * @return The Container image to use.
     * 
     */
    private String image;
    /**
     * @return Image registry credential.
     * 
     */
    private @Nullable ImageRegistryCredentialResponse imageRegistryCredential;
    /**
     * @return Runtime information of a container instance.
     * 
     */
    private ContainerInstanceViewResponse instanceView;
    /**
     * @return The labels to set in this container.
     * 
     */
    private @Nullable List labels;
    /**
     * @return The name of the code package.
     * 
     */
    private String name;
    /**
     * @return A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
     * 
     */
    private @Nullable List reliableCollectionsRefs;
    /**
     * @return The resources required by this container.
     * 
     */
    private ResourceRequirementsResponse resources;
    /**
     * @return The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
     * 
     */
    private @Nullable List settings;
    /**
     * @return Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
     * 
     */
    private @Nullable List volumeRefs;
    /**
     * @return Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
     * 
     */
    private @Nullable List volumes;

    private ContainerCodePackagePropertiesResponse() {}
    /**
     * @return Command array to execute within the container in exec form.
     * 
     */
    public List commands() {
        return this.commands == null ? List.of() : this.commands;
    }
    /**
     * @return Reference to sinks in DiagnosticsDescription.
     * 
     */
    public Optional diagnostics() {
        return Optional.ofNullable(this.diagnostics);
    }
    /**
     * @return The endpoints exposed by this container.
     * 
     */
    public List endpoints() {
        return this.endpoints == null ? List.of() : this.endpoints;
    }
    /**
     * @return Override for the default entry point in the container.
     * 
     */
    public Optional entrypoint() {
        return Optional.ofNullable(this.entrypoint);
    }
    /**
     * @return The environment variables to set in this container
     * 
     */
    public List environmentVariables() {
        return this.environmentVariables == null ? List.of() : this.environmentVariables;
    }
    /**
     * @return The Container image to use.
     * 
     */
    public String image() {
        return this.image;
    }
    /**
     * @return Image registry credential.
     * 
     */
    public Optional imageRegistryCredential() {
        return Optional.ofNullable(this.imageRegistryCredential);
    }
    /**
     * @return Runtime information of a container instance.
     * 
     */
    public ContainerInstanceViewResponse instanceView() {
        return this.instanceView;
    }
    /**
     * @return The labels to set in this container.
     * 
     */
    public List labels() {
        return this.labels == null ? List.of() : this.labels;
    }
    /**
     * @return The name of the code package.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
     * 
     */
    public List reliableCollectionsRefs() {
        return this.reliableCollectionsRefs == null ? List.of() : this.reliableCollectionsRefs;
    }
    /**
     * @return The resources required by this container.
     * 
     */
    public ResourceRequirementsResponse resources() {
        return this.resources;
    }
    /**
     * @return The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
     * 
     */
    public List settings() {
        return this.settings == null ? List.of() : this.settings;
    }
    /**
     * @return Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
     * 
     */
    public List volumeRefs() {
        return this.volumeRefs == null ? List.of() : this.volumeRefs;
    }
    /**
     * @return Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
     * 
     */
    public List volumes() {
        return this.volumes == null ? List.of() : this.volumes;
    }

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

    public static Builder builder(ContainerCodePackagePropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List commands;
        private @Nullable DiagnosticsRefResponse diagnostics;
        private @Nullable List endpoints;
        private @Nullable String entrypoint;
        private @Nullable List environmentVariables;
        private String image;
        private @Nullable ImageRegistryCredentialResponse imageRegistryCredential;
        private ContainerInstanceViewResponse instanceView;
        private @Nullable List labels;
        private String name;
        private @Nullable List reliableCollectionsRefs;
        private ResourceRequirementsResponse resources;
        private @Nullable List settings;
        private @Nullable List volumeRefs;
        private @Nullable List volumes;
        public Builder() {}
        public Builder(ContainerCodePackagePropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.commands = defaults.commands;
    	      this.diagnostics = defaults.diagnostics;
    	      this.endpoints = defaults.endpoints;
    	      this.entrypoint = defaults.entrypoint;
    	      this.environmentVariables = defaults.environmentVariables;
    	      this.image = defaults.image;
    	      this.imageRegistryCredential = defaults.imageRegistryCredential;
    	      this.instanceView = defaults.instanceView;
    	      this.labels = defaults.labels;
    	      this.name = defaults.name;
    	      this.reliableCollectionsRefs = defaults.reliableCollectionsRefs;
    	      this.resources = defaults.resources;
    	      this.settings = defaults.settings;
    	      this.volumeRefs = defaults.volumeRefs;
    	      this.volumes = defaults.volumes;
        }

        @CustomType.Setter
        public Builder commands(@Nullable List commands) {

            this.commands = commands;
            return this;
        }
        public Builder commands(String... commands) {
            return commands(List.of(commands));
        }
        @CustomType.Setter
        public Builder diagnostics(@Nullable DiagnosticsRefResponse diagnostics) {

            this.diagnostics = diagnostics;
            return this;
        }
        @CustomType.Setter
        public Builder endpoints(@Nullable List endpoints) {

            this.endpoints = endpoints;
            return this;
        }
        public Builder endpoints(EndpointPropertiesResponse... endpoints) {
            return endpoints(List.of(endpoints));
        }
        @CustomType.Setter
        public Builder entrypoint(@Nullable String entrypoint) {

            this.entrypoint = entrypoint;
            return this;
        }
        @CustomType.Setter
        public Builder environmentVariables(@Nullable List environmentVariables) {

            this.environmentVariables = environmentVariables;
            return this;
        }
        public Builder environmentVariables(EnvironmentVariableResponse... environmentVariables) {
            return environmentVariables(List.of(environmentVariables));
        }
        @CustomType.Setter
        public Builder image(String image) {
            if (image == null) {
              throw new MissingRequiredPropertyException("ContainerCodePackagePropertiesResponse", "image");
            }
            this.image = image;
            return this;
        }
        @CustomType.Setter
        public Builder imageRegistryCredential(@Nullable ImageRegistryCredentialResponse imageRegistryCredential) {

            this.imageRegistryCredential = imageRegistryCredential;
            return this;
        }
        @CustomType.Setter
        public Builder instanceView(ContainerInstanceViewResponse instanceView) {
            if (instanceView == null) {
              throw new MissingRequiredPropertyException("ContainerCodePackagePropertiesResponse", "instanceView");
            }
            this.instanceView = instanceView;
            return this;
        }
        @CustomType.Setter
        public Builder labels(@Nullable List labels) {

            this.labels = labels;
            return this;
        }
        public Builder labels(ContainerLabelResponse... labels) {
            return labels(List.of(labels));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ContainerCodePackagePropertiesResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder reliableCollectionsRefs(@Nullable List reliableCollectionsRefs) {

            this.reliableCollectionsRefs = reliableCollectionsRefs;
            return this;
        }
        public Builder reliableCollectionsRefs(ReliableCollectionsRefResponse... reliableCollectionsRefs) {
            return reliableCollectionsRefs(List.of(reliableCollectionsRefs));
        }
        @CustomType.Setter
        public Builder resources(ResourceRequirementsResponse resources) {
            if (resources == null) {
              throw new MissingRequiredPropertyException("ContainerCodePackagePropertiesResponse", "resources");
            }
            this.resources = resources;
            return this;
        }
        @CustomType.Setter
        public Builder settings(@Nullable List settings) {

            this.settings = settings;
            return this;
        }
        public Builder settings(SettingResponse... settings) {
            return settings(List.of(settings));
        }
        @CustomType.Setter
        public Builder volumeRefs(@Nullable List volumeRefs) {

            this.volumeRefs = volumeRefs;
            return this;
        }
        public Builder volumeRefs(VolumeReferenceResponse... volumeRefs) {
            return volumeRefs(List.of(volumeRefs));
        }
        @CustomType.Setter
        public Builder volumes(@Nullable List volumes) {

            this.volumes = volumes;
            return this;
        }
        public Builder volumes(ApplicationScopedVolumeResponse... volumes) {
            return volumes(List.of(volumes));
        }
        public ContainerCodePackagePropertiesResponse build() {
            final var _resultValue = new ContainerCodePackagePropertiesResponse();
            _resultValue.commands = commands;
            _resultValue.diagnostics = diagnostics;
            _resultValue.endpoints = endpoints;
            _resultValue.entrypoint = entrypoint;
            _resultValue.environmentVariables = environmentVariables;
            _resultValue.image = image;
            _resultValue.imageRegistryCredential = imageRegistryCredential;
            _resultValue.instanceView = instanceView;
            _resultValue.labels = labels;
            _resultValue.name = name;
            _resultValue.reliableCollectionsRefs = reliableCollectionsRefs;
            _resultValue.resources = resources;
            _resultValue.settings = settings;
            _resultValue.volumeRefs = volumeRefs;
            _resultValue.volumes = volumes;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy