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

com.pulumi.azurenative.elasticsan.outputs.SourceCreationDataResponse Maven / Gradle / Ivy

// *** 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.elasticsan.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SourceCreationDataResponse {
    /**
     * @return This enumerates the possible sources of a volume creation.
     * 
     */
    private @Nullable String createSource;
    /**
     * @return If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.
     * 
     */
    private @Nullable String sourceUri;

    private SourceCreationDataResponse() {}
    /**
     * @return This enumerates the possible sources of a volume creation.
     * 
     */
    public Optional createSource() {
        return Optional.ofNullable(this.createSource);
    }
    /**
     * @return If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.
     * 
     */
    public Optional sourceUri() {
        return Optional.ofNullable(this.sourceUri);
    }

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

    public static Builder builder(SourceCreationDataResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String createSource;
        private @Nullable String sourceUri;
        public Builder() {}
        public Builder(SourceCreationDataResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.createSource = defaults.createSource;
    	      this.sourceUri = defaults.sourceUri;
        }

        @CustomType.Setter
        public Builder createSource(@Nullable String createSource) {

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

            this.sourceUri = sourceUri;
            return this;
        }
        public SourceCreationDataResponse build() {
            final var _resultValue = new SourceCreationDataResponse();
            _resultValue.createSource = createSource;
            _resultValue.sourceUri = sourceUri;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy