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

com.pulumi.azurenative.testbase.outputs.GetDraftPackageResult 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.testbase.outputs;

import com.pulumi.azurenative.testbase.outputs.DraftPackageIntuneAppMetadataResponse;
import com.pulumi.azurenative.testbase.outputs.FirstPartyAppDefinitionResponse;
import com.pulumi.azurenative.testbase.outputs.GalleryAppDefinitionResponse;
import com.pulumi.azurenative.testbase.outputs.HighlightedFileResponse;
import com.pulumi.azurenative.testbase.outputs.InplaceUpgradeOSInfoResponse;
import com.pulumi.azurenative.testbase.outputs.IntuneEnrollmentMetadataResponse;
import com.pulumi.azurenative.testbase.outputs.SystemDataResponse;
import com.pulumi.azurenative.testbase.outputs.TabStateResponse;
import com.pulumi.azurenative.testbase.outputs.TargetOSInfoResponse;
import com.pulumi.azurenative.testbase.outputs.TestResponse;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetDraftPackageResult {
    /**
     * @return The name of the app file.
     * 
     */
    private @Nullable String appFileName;
    /**
     * @return Application name
     * 
     */
    private @Nullable String applicationName;
    /**
     * @return Comments added by user.
     * 
     */
    private @Nullable String comments;
    /**
     * @return The relative path of the folder hosting package files.
     * 
     */
    private String draftPackagePath;
    /**
     * @return Specifies whether this draft package is used to edit a package.
     * 
     */
    private @Nullable Boolean editPackage;
    /**
     * @return The executable launch command for script auto-fill. Will be used to run the application.
     * 
     */
    private @Nullable String executableLaunchCommand;
    /**
     * @return The list of first party applications to test along with user application.
     * 
     */
    private @Nullable List firstPartyApps;
    /**
     * @return The flighting ring for feature update.
     * 
     */
    private @Nullable String flightingRing;
    /**
     * @return The list of gallery apps to test along with user application.
     * 
     */
    private @Nullable List galleryApps;
    /**
     * @return The highlight files in the package.
     * 
     */
    private @Nullable List highlightedFiles;
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    private String id;
    /**
     * @return Specifies the baseline os and target os for inplace upgrade.
     * 
     */
    private @Nullable InplaceUpgradeOSInfoResponse inplaceUpgradeOSPair;
    /**
     * @return The metadata of Intune enrollment.
     * 
     */
    private @Nullable IntuneEnrollmentMetadataResponse intuneEnrollmentMetadata;
    /**
     * @return Metadata used to generate draft package folder and scripts.
     * 
     */
    private @Nullable DraftPackageIntuneAppMetadataResponse intuneMetadata;
    /**
     * @return The UTC timestamp when the package was last modified.
     * 
     */
    private String lastModifiedTime;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Specifies the package id from which the draft package copied.
     * 
     */
    private @Nullable String packageId;
    /**
     * @return Tags of the package to be created.
     * 
     */
    private @Nullable Map packageTags;
    /**
     * @return The process name for script auto-fill. Will be used to identify the application process.
     * 
     */
    private @Nullable String processName;
    /**
     * @return The provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The source type.
     * 
     */
    private @Nullable String sourceType;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Tab state.
     * 
     */
    private @Nullable TabStateResponse tabState;
    /**
     * @return Specifies the target OSs of specific OS Update types.
     * 
     */
    private @Nullable List targetOSList;
    /**
     * @return OOB, functional or flow driven. Mapped to the data in 'tests' property.
     * 
     */
    private @Nullable List testTypes;
    /**
     * @return The detailed test information.
     * 
     */
    private @Nullable List tests;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return Indicates whether user choose to enable script auto-fill.
     * 
     */
    private @Nullable Boolean useAutofill;
    /**
     * @return Specifies whether a sample package should be used instead of the one uploaded by the user.
     * 
     */
    private @Nullable Boolean useSample;
    /**
     * @return Application version
     * 
     */
    private @Nullable String version;
    /**
     * @return The relative path for a temporarily folder for package creation work.
     * 
     */
    private String workingPath;

    private GetDraftPackageResult() {}
    /**
     * @return The name of the app file.
     * 
     */
    public Optional appFileName() {
        return Optional.ofNullable(this.appFileName);
    }
    /**
     * @return Application name
     * 
     */
    public Optional applicationName() {
        return Optional.ofNullable(this.applicationName);
    }
    /**
     * @return Comments added by user.
     * 
     */
    public Optional comments() {
        return Optional.ofNullable(this.comments);
    }
    /**
     * @return The relative path of the folder hosting package files.
     * 
     */
    public String draftPackagePath() {
        return this.draftPackagePath;
    }
    /**
     * @return Specifies whether this draft package is used to edit a package.
     * 
     */
    public Optional editPackage() {
        return Optional.ofNullable(this.editPackage);
    }
    /**
     * @return The executable launch command for script auto-fill. Will be used to run the application.
     * 
     */
    public Optional executableLaunchCommand() {
        return Optional.ofNullable(this.executableLaunchCommand);
    }
    /**
     * @return The list of first party applications to test along with user application.
     * 
     */
    public List firstPartyApps() {
        return this.firstPartyApps == null ? List.of() : this.firstPartyApps;
    }
    /**
     * @return The flighting ring for feature update.
     * 
     */
    public Optional flightingRing() {
        return Optional.ofNullable(this.flightingRing);
    }
    /**
     * @return The list of gallery apps to test along with user application.
     * 
     */
    public List galleryApps() {
        return this.galleryApps == null ? List.of() : this.galleryApps;
    }
    /**
     * @return The highlight files in the package.
     * 
     */
    public List highlightedFiles() {
        return this.highlightedFiles == null ? List.of() : this.highlightedFiles;
    }
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Specifies the baseline os and target os for inplace upgrade.
     * 
     */
    public Optional inplaceUpgradeOSPair() {
        return Optional.ofNullable(this.inplaceUpgradeOSPair);
    }
    /**
     * @return The metadata of Intune enrollment.
     * 
     */
    public Optional intuneEnrollmentMetadata() {
        return Optional.ofNullable(this.intuneEnrollmentMetadata);
    }
    /**
     * @return Metadata used to generate draft package folder and scripts.
     * 
     */
    public Optional intuneMetadata() {
        return Optional.ofNullable(this.intuneMetadata);
    }
    /**
     * @return The UTC timestamp when the package was last modified.
     * 
     */
    public String lastModifiedTime() {
        return this.lastModifiedTime;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Specifies the package id from which the draft package copied.
     * 
     */
    public Optional packageId() {
        return Optional.ofNullable(this.packageId);
    }
    /**
     * @return Tags of the package to be created.
     * 
     */
    public Map packageTags() {
        return this.packageTags == null ? Map.of() : this.packageTags;
    }
    /**
     * @return The process name for script auto-fill. Will be used to identify the application process.
     * 
     */
    public Optional processName() {
        return Optional.ofNullable(this.processName);
    }
    /**
     * @return The provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The source type.
     * 
     */
    public Optional sourceType() {
        return Optional.ofNullable(this.sourceType);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Tab state.
     * 
     */
    public Optional tabState() {
        return Optional.ofNullable(this.tabState);
    }
    /**
     * @return Specifies the target OSs of specific OS Update types.
     * 
     */
    public List targetOSList() {
        return this.targetOSList == null ? List.of() : this.targetOSList;
    }
    /**
     * @return OOB, functional or flow driven. Mapped to the data in 'tests' property.
     * 
     */
    public List testTypes() {
        return this.testTypes == null ? List.of() : this.testTypes;
    }
    /**
     * @return The detailed test information.
     * 
     */
    public List tests() {
        return this.tests == null ? List.of() : this.tests;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Indicates whether user choose to enable script auto-fill.
     * 
     */
    public Optional useAutofill() {
        return Optional.ofNullable(this.useAutofill);
    }
    /**
     * @return Specifies whether a sample package should be used instead of the one uploaded by the user.
     * 
     */
    public Optional useSample() {
        return Optional.ofNullable(this.useSample);
    }
    /**
     * @return Application version
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }
    /**
     * @return The relative path for a temporarily folder for package creation work.
     * 
     */
    public String workingPath() {
        return this.workingPath;
    }

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

    public static Builder builder(GetDraftPackageResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String appFileName;
        private @Nullable String applicationName;
        private @Nullable String comments;
        private String draftPackagePath;
        private @Nullable Boolean editPackage;
        private @Nullable String executableLaunchCommand;
        private @Nullable List firstPartyApps;
        private @Nullable String flightingRing;
        private @Nullable List galleryApps;
        private @Nullable List highlightedFiles;
        private String id;
        private @Nullable InplaceUpgradeOSInfoResponse inplaceUpgradeOSPair;
        private @Nullable IntuneEnrollmentMetadataResponse intuneEnrollmentMetadata;
        private @Nullable DraftPackageIntuneAppMetadataResponse intuneMetadata;
        private String lastModifiedTime;
        private String name;
        private @Nullable String packageId;
        private @Nullable Map packageTags;
        private @Nullable String processName;
        private String provisioningState;
        private @Nullable String sourceType;
        private SystemDataResponse systemData;
        private @Nullable TabStateResponse tabState;
        private @Nullable List targetOSList;
        private @Nullable List testTypes;
        private @Nullable List tests;
        private String type;
        private @Nullable Boolean useAutofill;
        private @Nullable Boolean useSample;
        private @Nullable String version;
        private String workingPath;
        public Builder() {}
        public Builder(GetDraftPackageResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appFileName = defaults.appFileName;
    	      this.applicationName = defaults.applicationName;
    	      this.comments = defaults.comments;
    	      this.draftPackagePath = defaults.draftPackagePath;
    	      this.editPackage = defaults.editPackage;
    	      this.executableLaunchCommand = defaults.executableLaunchCommand;
    	      this.firstPartyApps = defaults.firstPartyApps;
    	      this.flightingRing = defaults.flightingRing;
    	      this.galleryApps = defaults.galleryApps;
    	      this.highlightedFiles = defaults.highlightedFiles;
    	      this.id = defaults.id;
    	      this.inplaceUpgradeOSPair = defaults.inplaceUpgradeOSPair;
    	      this.intuneEnrollmentMetadata = defaults.intuneEnrollmentMetadata;
    	      this.intuneMetadata = defaults.intuneMetadata;
    	      this.lastModifiedTime = defaults.lastModifiedTime;
    	      this.name = defaults.name;
    	      this.packageId = defaults.packageId;
    	      this.packageTags = defaults.packageTags;
    	      this.processName = defaults.processName;
    	      this.provisioningState = defaults.provisioningState;
    	      this.sourceType = defaults.sourceType;
    	      this.systemData = defaults.systemData;
    	      this.tabState = defaults.tabState;
    	      this.targetOSList = defaults.targetOSList;
    	      this.testTypes = defaults.testTypes;
    	      this.tests = defaults.tests;
    	      this.type = defaults.type;
    	      this.useAutofill = defaults.useAutofill;
    	      this.useSample = defaults.useSample;
    	      this.version = defaults.version;
    	      this.workingPath = defaults.workingPath;
        }

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

            this.appFileName = appFileName;
            return this;
        }
        @CustomType.Setter
        public Builder applicationName(@Nullable String applicationName) {

            this.applicationName = applicationName;
            return this;
        }
        @CustomType.Setter
        public Builder comments(@Nullable String comments) {

            this.comments = comments;
            return this;
        }
        @CustomType.Setter
        public Builder draftPackagePath(String draftPackagePath) {
            if (draftPackagePath == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "draftPackagePath");
            }
            this.draftPackagePath = draftPackagePath;
            return this;
        }
        @CustomType.Setter
        public Builder editPackage(@Nullable Boolean editPackage) {

            this.editPackage = editPackage;
            return this;
        }
        @CustomType.Setter
        public Builder executableLaunchCommand(@Nullable String executableLaunchCommand) {

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

            this.firstPartyApps = firstPartyApps;
            return this;
        }
        public Builder firstPartyApps(FirstPartyAppDefinitionResponse... firstPartyApps) {
            return firstPartyApps(List.of(firstPartyApps));
        }
        @CustomType.Setter
        public Builder flightingRing(@Nullable String flightingRing) {

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

            this.galleryApps = galleryApps;
            return this;
        }
        public Builder galleryApps(GalleryAppDefinitionResponse... galleryApps) {
            return galleryApps(List.of(galleryApps));
        }
        @CustomType.Setter
        public Builder highlightedFiles(@Nullable List highlightedFiles) {

            this.highlightedFiles = highlightedFiles;
            return this;
        }
        public Builder highlightedFiles(HighlightedFileResponse... highlightedFiles) {
            return highlightedFiles(List.of(highlightedFiles));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder inplaceUpgradeOSPair(@Nullable InplaceUpgradeOSInfoResponse inplaceUpgradeOSPair) {

            this.inplaceUpgradeOSPair = inplaceUpgradeOSPair;
            return this;
        }
        @CustomType.Setter
        public Builder intuneEnrollmentMetadata(@Nullable IntuneEnrollmentMetadataResponse intuneEnrollmentMetadata) {

            this.intuneEnrollmentMetadata = intuneEnrollmentMetadata;
            return this;
        }
        @CustomType.Setter
        public Builder intuneMetadata(@Nullable DraftPackageIntuneAppMetadataResponse intuneMetadata) {

            this.intuneMetadata = intuneMetadata;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedTime(String lastModifiedTime) {
            if (lastModifiedTime == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "lastModifiedTime");
            }
            this.lastModifiedTime = lastModifiedTime;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder packageId(@Nullable String packageId) {

            this.packageId = packageId;
            return this;
        }
        @CustomType.Setter
        public Builder packageTags(@Nullable Map packageTags) {

            this.packageTags = packageTags;
            return this;
        }
        @CustomType.Setter
        public Builder processName(@Nullable String processName) {

            this.processName = processName;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder sourceType(@Nullable String sourceType) {

            this.sourceType = sourceType;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tabState(@Nullable TabStateResponse tabState) {

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

            this.targetOSList = targetOSList;
            return this;
        }
        public Builder targetOSList(TargetOSInfoResponse... targetOSList) {
            return targetOSList(List.of(targetOSList));
        }
        @CustomType.Setter
        public Builder testTypes(@Nullable List testTypes) {

            this.testTypes = testTypes;
            return this;
        }
        public Builder testTypes(String... testTypes) {
            return testTypes(List.of(testTypes));
        }
        @CustomType.Setter
        public Builder tests(@Nullable List tests) {

            this.tests = tests;
            return this;
        }
        public Builder tests(TestResponse... tests) {
            return tests(List.of(tests));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder useAutofill(@Nullable Boolean useAutofill) {

            this.useAutofill = useAutofill;
            return this;
        }
        @CustomType.Setter
        public Builder useSample(@Nullable Boolean useSample) {

            this.useSample = useSample;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable String version) {

            this.version = version;
            return this;
        }
        @CustomType.Setter
        public Builder workingPath(String workingPath) {
            if (workingPath == null) {
              throw new MissingRequiredPropertyException("GetDraftPackageResult", "workingPath");
            }
            this.workingPath = workingPath;
            return this;
        }
        public GetDraftPackageResult build() {
            final var _resultValue = new GetDraftPackageResult();
            _resultValue.appFileName = appFileName;
            _resultValue.applicationName = applicationName;
            _resultValue.comments = comments;
            _resultValue.draftPackagePath = draftPackagePath;
            _resultValue.editPackage = editPackage;
            _resultValue.executableLaunchCommand = executableLaunchCommand;
            _resultValue.firstPartyApps = firstPartyApps;
            _resultValue.flightingRing = flightingRing;
            _resultValue.galleryApps = galleryApps;
            _resultValue.highlightedFiles = highlightedFiles;
            _resultValue.id = id;
            _resultValue.inplaceUpgradeOSPair = inplaceUpgradeOSPair;
            _resultValue.intuneEnrollmentMetadata = intuneEnrollmentMetadata;
            _resultValue.intuneMetadata = intuneMetadata;
            _resultValue.lastModifiedTime = lastModifiedTime;
            _resultValue.name = name;
            _resultValue.packageId = packageId;
            _resultValue.packageTags = packageTags;
            _resultValue.processName = processName;
            _resultValue.provisioningState = provisioningState;
            _resultValue.sourceType = sourceType;
            _resultValue.systemData = systemData;
            _resultValue.tabState = tabState;
            _resultValue.targetOSList = targetOSList;
            _resultValue.testTypes = testTypes;
            _resultValue.tests = tests;
            _resultValue.type = type;
            _resultValue.useAutofill = useAutofill;
            _resultValue.useSample = useSample;
            _resultValue.version = version;
            _resultValue.workingPath = workingPath;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy