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

com.pulumi.azurenative.logic.outputs.ContentLinkResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.logic.outputs.ContentHashResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContentLinkResponse {
    /**
     * @return The content hash.
     * 
     */
    private ContentHashResponse contentHash;
    /**
     * @return The content size.
     * 
     */
    private Double contentSize;
    /**
     * @return The content version.
     * 
     */
    private String contentVersion;
    /**
     * @return The metadata.
     * 
     */
    private Object metadata;
    /**
     * @return The content link URI.
     * 
     */
    private @Nullable String uri;

    private ContentLinkResponse() {}
    /**
     * @return The content hash.
     * 
     */
    public ContentHashResponse contentHash() {
        return this.contentHash;
    }
    /**
     * @return The content size.
     * 
     */
    public Double contentSize() {
        return this.contentSize;
    }
    /**
     * @return The content version.
     * 
     */
    public String contentVersion() {
        return this.contentVersion;
    }
    /**
     * @return The metadata.
     * 
     */
    public Object metadata() {
        return this.metadata;
    }
    /**
     * @return The content link URI.
     * 
     */
    public Optional uri() {
        return Optional.ofNullable(this.uri);
    }

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

    public static Builder builder(ContentLinkResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ContentHashResponse contentHash;
        private Double contentSize;
        private String contentVersion;
        private Object metadata;
        private @Nullable String uri;
        public Builder() {}
        public Builder(ContentLinkResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.contentHash = defaults.contentHash;
    	      this.contentSize = defaults.contentSize;
    	      this.contentVersion = defaults.contentVersion;
    	      this.metadata = defaults.metadata;
    	      this.uri = defaults.uri;
        }

        @CustomType.Setter
        public Builder contentHash(ContentHashResponse contentHash) {
            if (contentHash == null) {
              throw new MissingRequiredPropertyException("ContentLinkResponse", "contentHash");
            }
            this.contentHash = contentHash;
            return this;
        }
        @CustomType.Setter
        public Builder contentSize(Double contentSize) {
            if (contentSize == null) {
              throw new MissingRequiredPropertyException("ContentLinkResponse", "contentSize");
            }
            this.contentSize = contentSize;
            return this;
        }
        @CustomType.Setter
        public Builder contentVersion(String contentVersion) {
            if (contentVersion == null) {
              throw new MissingRequiredPropertyException("ContentLinkResponse", "contentVersion");
            }
            this.contentVersion = contentVersion;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(Object metadata) {
            if (metadata == null) {
              throw new MissingRequiredPropertyException("ContentLinkResponse", "metadata");
            }
            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder uri(@Nullable String uri) {

            this.uri = uri;
            return this;
        }
        public ContentLinkResponse build() {
            final var _resultValue = new ContentLinkResponse();
            _resultValue.contentHash = contentHash;
            _resultValue.contentSize = contentSize;
            _resultValue.contentVersion = contentVersion;
            _resultValue.metadata = metadata;
            _resultValue.uri = uri;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy