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

com.pulumi.azurenative.app.outputs.HttpGetResponse Maven / Gradle / Ivy

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

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

@CustomType
public final class HttpGetResponse {
    /**
     * @return Name of the file that the request should be saved to.
     * 
     */
    private @Nullable String fileName;
    /**
     * @return List of headers to send with the request.
     * 
     */
    private @Nullable List headers;
    /**
     * @return URL to make HTTP GET request against.
     * 
     */
    private String url;

    private HttpGetResponse() {}
    /**
     * @return Name of the file that the request should be saved to.
     * 
     */
    public Optional fileName() {
        return Optional.ofNullable(this.fileName);
    }
    /**
     * @return List of headers to send with the request.
     * 
     */
    public List headers() {
        return this.headers == null ? List.of() : this.headers;
    }
    /**
     * @return URL to make HTTP GET request against.
     * 
     */
    public String url() {
        return this.url;
    }

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

    public static Builder builder(HttpGetResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String fileName;
        private @Nullable List headers;
        private String url;
        public Builder() {}
        public Builder(HttpGetResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fileName = defaults.fileName;
    	      this.headers = defaults.headers;
    	      this.url = defaults.url;
        }

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

            this.fileName = fileName;
            return this;
        }
        @CustomType.Setter
        public Builder headers(@Nullable List headers) {

            this.headers = headers;
            return this;
        }
        public Builder headers(String... headers) {
            return headers(List.of(headers));
        }
        @CustomType.Setter
        public Builder url(String url) {
            if (url == null) {
              throw new MissingRequiredPropertyException("HttpGetResponse", "url");
            }
            this.url = url;
            return this;
        }
        public HttpGetResponse build() {
            final var _resultValue = new HttpGetResponse();
            _resultValue.fileName = fileName;
            _resultValue.headers = headers;
            _resultValue.url = url;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy