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

com.pulumi.azurenative.appplatform.outputs.JobResourcePropertiesResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.appplatform.outputs.BuildResultUserSourceInfoResponse;
import com.pulumi.azurenative.appplatform.outputs.CustomContainerUserSourceInfoResponse;
import com.pulumi.azurenative.appplatform.outputs.JarUploadedUserSourceInfoResponse;
import com.pulumi.azurenative.appplatform.outputs.JobExecutionTemplateResponse;
import com.pulumi.azurenative.appplatform.outputs.ManagedComponentReferenceResponse;
import com.pulumi.azurenative.appplatform.outputs.ManualJobTriggerConfigResponse;
import com.pulumi.azurenative.appplatform.outputs.NetCoreZipUploadedUserSourceInfoResponse;
import com.pulumi.azurenative.appplatform.outputs.SourceUploadedUserSourceInfoResponse;
import com.pulumi.azurenative.appplatform.outputs.UploadedUserSourceInfoResponse;
import com.pulumi.azurenative.appplatform.outputs.WarUploadedUserSourceInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class JobResourcePropertiesResponse {
    /**
     * @return Referenced managed components collection
     * 
     */
    private @Nullable List managedComponentReferences;
    /**
     * @return Provisioning state of the Job
     * 
     */
    private String provisioningState;
    /**
     * @return Uploaded source information of the Job.
     * 
     */
    private @Nullable Object source;
    /**
     * @return The template which is applied for all executions of the Job.
     * 
     */
    private @Nullable JobExecutionTemplateResponse template;
    /**
     * @return The Job trigger related configuration.
     * 
     */
    private @Nullable ManualJobTriggerConfigResponse triggerConfig;

    private JobResourcePropertiesResponse() {}
    /**
     * @return Referenced managed components collection
     * 
     */
    public List managedComponentReferences() {
        return this.managedComponentReferences == null ? List.of() : this.managedComponentReferences;
    }
    /**
     * @return Provisioning state of the Job
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Uploaded source information of the Job.
     * 
     */
    public Optional source() {
        return Optional.ofNullable(this.source);
    }
    /**
     * @return The template which is applied for all executions of the Job.
     * 
     */
    public Optional template() {
        return Optional.ofNullable(this.template);
    }
    /**
     * @return The Job trigger related configuration.
     * 
     */
    public Optional triggerConfig() {
        return Optional.ofNullable(this.triggerConfig);
    }

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

    public static Builder builder(JobResourcePropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List managedComponentReferences;
        private String provisioningState;
        private @Nullable Object source;
        private @Nullable JobExecutionTemplateResponse template;
        private @Nullable ManualJobTriggerConfigResponse triggerConfig;
        public Builder() {}
        public Builder(JobResourcePropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.managedComponentReferences = defaults.managedComponentReferences;
    	      this.provisioningState = defaults.provisioningState;
    	      this.source = defaults.source;
    	      this.template = defaults.template;
    	      this.triggerConfig = defaults.triggerConfig;
        }

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

            this.managedComponentReferences = managedComponentReferences;
            return this;
        }
        public Builder managedComponentReferences(ManagedComponentReferenceResponse... managedComponentReferences) {
            return managedComponentReferences(List.of(managedComponentReferences));
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("JobResourcePropertiesResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder source(@Nullable Object source) {

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

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

            this.triggerConfig = triggerConfig;
            return this;
        }
        public JobResourcePropertiesResponse build() {
            final var _resultValue = new JobResourcePropertiesResponse();
            _resultValue.managedComponentReferences = managedComponentReferences;
            _resultValue.provisioningState = provisioningState;
            _resultValue.source = source;
            _resultValue.template = template;
            _resultValue.triggerConfig = triggerConfig;
            return _resultValue;
        }
    }
}