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

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

import com.pulumi.azurenative.testbase.outputs.PackageValidationResultResponse;
import com.pulumi.azurenative.testbase.outputs.SystemDataResponse;
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 javax.annotation.Nullable;

@CustomType
public final class GetPackageResult {
    /**
     * @return Application name
     * 
     */
    private String applicationName;
    /**
     * @return The file path of the package.
     * 
     */
    private String blobPath;
    /**
     * @return Resource Etag.
     * 
     */
    private String etag;
    /**
     * @return The flighting ring for feature update.
     * 
     */
    private String flightingRing;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
     * 
     */
    private Boolean isEnabled;
    /**
     * @return The UTC timestamp when the package was last modified.
     * 
     */
    private String lastModifiedTime;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The status of the package.
     * 
     */
    private String packageStatus;
    /**
     * @return The provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The system metadata relating to this resource
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Specifies the target OSs of specific OS Update types.
     * 
     */
    private List targetOSList;
    /**
     * @return OOB, functional or both. Mapped to the data in 'tests' property.
     * 
     */
    private List testTypes;
    /**
     * @return The detailed test information.
     * 
     */
    private List tests;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return The validation results. There's validation on package when it's created or updated.
     * 
     */
    private List validationResults;
    /**
     * @return Application version
     * 
     */
    private String version;

    private GetPackageResult() {}
    /**
     * @return Application name
     * 
     */
    public String applicationName() {
        return this.applicationName;
    }
    /**
     * @return The file path of the package.
     * 
     */
    public String blobPath() {
        return this.blobPath;
    }
    /**
     * @return Resource Etag.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return The flighting ring for feature update.
     * 
     */
    public String flightingRing() {
        return this.flightingRing;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
     * 
     */
    public Boolean isEnabled() {
        return this.isEnabled;
    }
    /**
     * @return The UTC timestamp when the package was last modified.
     * 
     */
    public String lastModifiedTime() {
        return this.lastModifiedTime;
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The status of the package.
     * 
     */
    public String packageStatus() {
        return this.packageStatus;
    }
    /**
     * @return The provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The system metadata relating to this resource
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Specifies the target OSs of specific OS Update types.
     * 
     */
    public List targetOSList() {
        return this.targetOSList;
    }
    /**
     * @return OOB, functional or both. Mapped to the data in 'tests' property.
     * 
     */
    public List testTypes() {
        return this.testTypes;
    }
    /**
     * @return The detailed test information.
     * 
     */
    public List tests() {
        return this.tests;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The validation results. There's validation on package when it's created or updated.
     * 
     */
    public List validationResults() {
        return this.validationResults;
    }
    /**
     * @return Application version
     * 
     */
    public String version() {
        return this.version;
    }

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

    public static Builder builder(GetPackageResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String applicationName;
        private String blobPath;
        private String etag;
        private String flightingRing;
        private String id;
        private Boolean isEnabled;
        private String lastModifiedTime;
        private String location;
        private String name;
        private String packageStatus;
        private String provisioningState;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private List targetOSList;
        private List testTypes;
        private List tests;
        private String type;
        private List validationResults;
        private String version;
        public Builder() {}
        public Builder(GetPackageResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.applicationName = defaults.applicationName;
    	      this.blobPath = defaults.blobPath;
    	      this.etag = defaults.etag;
    	      this.flightingRing = defaults.flightingRing;
    	      this.id = defaults.id;
    	      this.isEnabled = defaults.isEnabled;
    	      this.lastModifiedTime = defaults.lastModifiedTime;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.packageStatus = defaults.packageStatus;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.targetOSList = defaults.targetOSList;
    	      this.testTypes = defaults.testTypes;
    	      this.tests = defaults.tests;
    	      this.type = defaults.type;
    	      this.validationResults = defaults.validationResults;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder applicationName(String applicationName) {
            if (applicationName == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "applicationName");
            }
            this.applicationName = applicationName;
            return this;
        }
        @CustomType.Setter
        public Builder blobPath(String blobPath) {
            if (blobPath == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "blobPath");
            }
            this.blobPath = blobPath;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder flightingRing(String flightingRing) {
            if (flightingRing == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "flightingRing");
            }
            this.flightingRing = flightingRing;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isEnabled(Boolean isEnabled) {
            if (isEnabled == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "isEnabled");
            }
            this.isEnabled = isEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedTime(String lastModifiedTime) {
            if (lastModifiedTime == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "lastModifiedTime");
            }
            this.lastModifiedTime = lastModifiedTime;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder packageStatus(String packageStatus) {
            if (packageStatus == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "packageStatus");
            }
            this.packageStatus = packageStatus;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder targetOSList(List targetOSList) {
            if (targetOSList == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "targetOSList");
            }
            this.targetOSList = targetOSList;
            return this;
        }
        public Builder targetOSList(TargetOSInfoResponse... targetOSList) {
            return targetOSList(List.of(targetOSList));
        }
        @CustomType.Setter
        public Builder testTypes(List testTypes) {
            if (testTypes == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "testTypes");
            }
            this.testTypes = testTypes;
            return this;
        }
        public Builder testTypes(String... testTypes) {
            return testTypes(List.of(testTypes));
        }
        @CustomType.Setter
        public Builder tests(List tests) {
            if (tests == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "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("GetPackageResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder validationResults(List validationResults) {
            if (validationResults == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "validationResults");
            }
            this.validationResults = validationResults;
            return this;
        }
        public Builder validationResults(PackageValidationResultResponse... validationResults) {
            return validationResults(List.of(validationResults));
        }
        @CustomType.Setter
        public Builder version(String version) {
            if (version == null) {
              throw new MissingRequiredPropertyException("GetPackageResult", "version");
            }
            this.version = version;
            return this;
        }
        public GetPackageResult build() {
            final var _resultValue = new GetPackageResult();
            _resultValue.applicationName = applicationName;
            _resultValue.blobPath = blobPath;
            _resultValue.etag = etag;
            _resultValue.flightingRing = flightingRing;
            _resultValue.id = id;
            _resultValue.isEnabled = isEnabled;
            _resultValue.lastModifiedTime = lastModifiedTime;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.packageStatus = packageStatus;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.targetOSList = targetOSList;
            _resultValue.testTypes = testTypes;
            _resultValue.tests = tests;
            _resultValue.type = type;
            _resultValue.validationResults = validationResults;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy