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

com.pulumi.azurenative.containerregistry.outputs.GetArchifeResult Maven / Gradle / Ivy

There is a newer version: 2.78.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.containerregistry.outputs;

import com.pulumi.azurenative.containerregistry.outputs.ArchivePackageSourcePropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetArchifeResult {
    /**
     * @return The resource ID.
     * 
     */
    private String id;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The package source of the archive.
     * 
     */
    private @Nullable ArchivePackageSourcePropertiesResponse packageSource;
    /**
     * @return The provisioning state of the archive at the time the operation was called.
     * 
     */
    private String provisioningState;
    /**
     * @return The published version of the archive.
     * 
     */
    private @Nullable String publishedVersion;
    private String repositoryEndpoint;
    private @Nullable String repositoryEndpointPrefix;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;

    private GetArchifeResult() {}
    /**
     * @return The resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The package source of the archive.
     * 
     */
    public Optional packageSource() {
        return Optional.ofNullable(this.packageSource);
    }
    /**
     * @return The provisioning state of the archive at the time the operation was called.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The published version of the archive.
     * 
     */
    public Optional publishedVersion() {
        return Optional.ofNullable(this.publishedVersion);
    }
    public String repositoryEndpoint() {
        return this.repositoryEndpoint;
    }
    public Optional repositoryEndpointPrefix() {
        return Optional.ofNullable(this.repositoryEndpointPrefix);
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetArchifeResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private String name;
        private @Nullable ArchivePackageSourcePropertiesResponse packageSource;
        private String provisioningState;
        private @Nullable String publishedVersion;
        private String repositoryEndpoint;
        private @Nullable String repositoryEndpointPrefix;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetArchifeResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.packageSource = defaults.packageSource;
    	      this.provisioningState = defaults.provisioningState;
    	      this.publishedVersion = defaults.publishedVersion;
    	      this.repositoryEndpoint = defaults.repositoryEndpoint;
    	      this.repositoryEndpointPrefix = defaults.repositoryEndpointPrefix;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetArchifeResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetArchifeResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder packageSource(@Nullable ArchivePackageSourcePropertiesResponse packageSource) {

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

            this.publishedVersion = publishedVersion;
            return this;
        }
        @CustomType.Setter
        public Builder repositoryEndpoint(String repositoryEndpoint) {
            if (repositoryEndpoint == null) {
              throw new MissingRequiredPropertyException("GetArchifeResult", "repositoryEndpoint");
            }
            this.repositoryEndpoint = repositoryEndpoint;
            return this;
        }
        @CustomType.Setter
        public Builder repositoryEndpointPrefix(@Nullable String repositoryEndpointPrefix) {

            this.repositoryEndpointPrefix = repositoryEndpointPrefix;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetArchifeResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetArchifeResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetArchifeResult build() {
            final var _resultValue = new GetArchifeResult();
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.packageSource = packageSource;
            _resultValue.provisioningState = provisioningState;
            _resultValue.publishedVersion = publishedVersion;
            _resultValue.repositoryEndpoint = repositoryEndpoint;
            _resultValue.repositoryEndpointPrefix = repositoryEndpointPrefix;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy