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

com.pulumi.azurenative.storage.outputs.StorageTaskAssignmentExecutionContextResponse 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.storage.outputs;

import com.pulumi.azurenative.storage.outputs.ExecutionTargetResponse;
import com.pulumi.azurenative.storage.outputs.ExecutionTriggerResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class StorageTaskAssignmentExecutionContextResponse {
    /**
     * @return Execution target of the storage task assignment
     * 
     */
    private @Nullable ExecutionTargetResponse target;
    /**
     * @return Execution trigger of the storage task assignment
     * 
     */
    private ExecutionTriggerResponse trigger;

    private StorageTaskAssignmentExecutionContextResponse() {}
    /**
     * @return Execution target of the storage task assignment
     * 
     */
    public Optional target() {
        return Optional.ofNullable(this.target);
    }
    /**
     * @return Execution trigger of the storage task assignment
     * 
     */
    public ExecutionTriggerResponse trigger() {
        return this.trigger;
    }

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

    public static Builder builder(StorageTaskAssignmentExecutionContextResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ExecutionTargetResponse target;
        private ExecutionTriggerResponse trigger;
        public Builder() {}
        public Builder(StorageTaskAssignmentExecutionContextResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.target = defaults.target;
    	      this.trigger = defaults.trigger;
        }

        @CustomType.Setter
        public Builder target(@Nullable ExecutionTargetResponse target) {

            this.target = target;
            return this;
        }
        @CustomType.Setter
        public Builder trigger(ExecutionTriggerResponse trigger) {
            if (trigger == null) {
              throw new MissingRequiredPropertyException("StorageTaskAssignmentExecutionContextResponse", "trigger");
            }
            this.trigger = trigger;
            return this;
        }
        public StorageTaskAssignmentExecutionContextResponse build() {
            final var _resultValue = new StorageTaskAssignmentExecutionContextResponse();
            _resultValue.target = target;
            _resultValue.trigger = trigger;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy