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

com.pulumi.azurenative.scheduler.outputs.HttpRequestResponse 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.scheduler.outputs;

import com.pulumi.azurenative.scheduler.outputs.BasicAuthenticationResponse;
import com.pulumi.azurenative.scheduler.outputs.ClientCertAuthenticationResponse;
import com.pulumi.azurenative.scheduler.outputs.OAuthAuthenticationResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class HttpRequestResponse {
    /**
     * @return Gets or sets the authentication method of the request.
     * 
     */
    private @Nullable Object authentication;
    /**
     * @return Gets or sets the request body.
     * 
     */
    private @Nullable String body;
    /**
     * @return Gets or sets the headers.
     * 
     */
    private @Nullable Map headers;
    /**
     * @return Gets or sets the method of the request.
     * 
     */
    private @Nullable String method;
    /**
     * @return Gets or sets the URI of the request.
     * 
     */
    private @Nullable String uri;

    private HttpRequestResponse() {}
    /**
     * @return Gets or sets the authentication method of the request.
     * 
     */
    public Optional authentication() {
        return Optional.ofNullable(this.authentication);
    }
    /**
     * @return Gets or sets the request body.
     * 
     */
    public Optional body() {
        return Optional.ofNullable(this.body);
    }
    /**
     * @return Gets or sets the headers.
     * 
     */
    public Map headers() {
        return this.headers == null ? Map.of() : this.headers;
    }
    /**
     * @return Gets or sets the method of the request.
     * 
     */
    public Optional method() {
        return Optional.ofNullable(this.method);
    }
    /**
     * @return Gets or sets the URI of the request.
     * 
     */
    public Optional uri() {
        return Optional.ofNullable(this.uri);
    }

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

    public static Builder builder(HttpRequestResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object authentication;
        private @Nullable String body;
        private @Nullable Map headers;
        private @Nullable String method;
        private @Nullable String uri;
        public Builder() {}
        public Builder(HttpRequestResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authentication = defaults.authentication;
    	      this.body = defaults.body;
    	      this.headers = defaults.headers;
    	      this.method = defaults.method;
    	      this.uri = defaults.uri;
        }

        @CustomType.Setter
        public Builder authentication(@Nullable Object authentication) {

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

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

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

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

            this.uri = uri;
            return this;
        }
        public HttpRequestResponse build() {
            final var _resultValue = new HttpRequestResponse();
            _resultValue.authentication = authentication;
            _resultValue.body = body;
            _resultValue.headers = headers;
            _resultValue.method = method;
            _resultValue.uri = uri;
            return _resultValue;
        }
    }
}