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

com.pulumi.azurenative.web.outputs.GetContainerAppResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.web.outputs.ConfigurationResponse;
import com.pulumi.azurenative.web.outputs.TemplateResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetContainerAppResult {
    /**
     * @return Non versioned Container App configuration properties.
     * 
     */
    private @Nullable ConfigurationResponse configuration;
    /**
     * @return Resource Id.
     * 
     */
    private String id;
    /**
     * @return Kind of resource.
     * 
     */
    private @Nullable String kind;
    /**
     * @return Resource ID of the Container App's KubeEnvironment.
     * 
     */
    private @Nullable String kubeEnvironmentId;
    /**
     * @return Fully Qualified Domain Name of the latest revision of the Container App.
     * 
     */
    private String latestRevisionFqdn;
    /**
     * @return Name of the latest revision of the Container App.
     * 
     */
    private String latestRevisionName;
    /**
     * @return Resource Location.
     * 
     */
    private String location;
    /**
     * @return Resource Name.
     * 
     */
    private String name;
    /**
     * @return Provisioning state of the Container App.
     * 
     */
    private String provisioningState;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Container App versioned application definition.
     * 
     */
    private @Nullable TemplateResponse template;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetContainerAppResult() {}
    /**
     * @return Non versioned Container App configuration properties.
     * 
     */
    public Optional configuration() {
        return Optional.ofNullable(this.configuration);
    }
    /**
     * @return Resource Id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Kind of resource.
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return Resource ID of the Container App's KubeEnvironment.
     * 
     */
    public Optional kubeEnvironmentId() {
        return Optional.ofNullable(this.kubeEnvironmentId);
    }
    /**
     * @return Fully Qualified Domain Name of the latest revision of the Container App.
     * 
     */
    public String latestRevisionFqdn() {
        return this.latestRevisionFqdn;
    }
    /**
     * @return Name of the latest revision of the Container App.
     * 
     */
    public String latestRevisionName() {
        return this.latestRevisionName;
    }
    /**
     * @return Resource Location.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Resource Name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Provisioning state of the Container App.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Container App versioned application definition.
     * 
     */
    public Optional template() {
        return Optional.ofNullable(this.template);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetContainerAppResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ConfigurationResponse configuration;
        private String id;
        private @Nullable String kind;
        private @Nullable String kubeEnvironmentId;
        private String latestRevisionFqdn;
        private String latestRevisionName;
        private String location;
        private String name;
        private String provisioningState;
        private @Nullable Map tags;
        private @Nullable TemplateResponse template;
        private String type;
        public Builder() {}
        public Builder(GetContainerAppResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.configuration = defaults.configuration;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.kubeEnvironmentId = defaults.kubeEnvironmentId;
    	      this.latestRevisionFqdn = defaults.latestRevisionFqdn;
    	      this.latestRevisionName = defaults.latestRevisionName;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.tags = defaults.tags;
    	      this.template = defaults.template;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder configuration(@Nullable ConfigurationResponse configuration) {

            this.configuration = configuration;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetContainerAppResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(@Nullable String kind) {

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

            this.kubeEnvironmentId = kubeEnvironmentId;
            return this;
        }
        @CustomType.Setter
        public Builder latestRevisionFqdn(String latestRevisionFqdn) {
            if (latestRevisionFqdn == null) {
              throw new MissingRequiredPropertyException("GetContainerAppResult", "latestRevisionFqdn");
            }
            this.latestRevisionFqdn = latestRevisionFqdn;
            return this;
        }
        @CustomType.Setter
        public Builder latestRevisionName(String latestRevisionName) {
            if (latestRevisionName == null) {
              throw new MissingRequiredPropertyException("GetContainerAppResult", "latestRevisionName");
            }
            this.latestRevisionName = latestRevisionName;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetContainerAppResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetContainerAppResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetContainerAppResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder template(@Nullable TemplateResponse template) {

            this.template = template;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetContainerAppResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetContainerAppResult build() {
            final var _resultValue = new GetContainerAppResult();
            _resultValue.configuration = configuration;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.kubeEnvironmentId = kubeEnvironmentId;
            _resultValue.latestRevisionFqdn = latestRevisionFqdn;
            _resultValue.latestRevisionName = latestRevisionName;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.tags = tags;
            _resultValue.template = template;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy