// *** 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.aws.cloudfront;

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


public final class OriginAccessControlArgs extends com.pulumi.resources.ResourceArgs {

    public static final OriginAccessControlArgs Empty = new OriginAccessControlArgs();

    /**
     * The description of the Origin Access Control. Defaults to &#34;Managed by Pulumi&#34; if omitted.
     * 
     */
    @Import(name="description")
    private @Nullable Output<String> description;

    /**
     * @return The description of the Origin Access Control. Defaults to &#34;Managed by Pulumi&#34; if omitted.
     * 
     */
    public Optional<Output<String>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A name that identifies the Origin Access Control.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return A name that identifies the Origin Access Control.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The type of origin that this Origin Access Control is for. Valid values are `s3`, and `mediastore`.
     * 
     */
    @Import(name="originAccessControlOriginType", required=true)
    private Output<String> originAccessControlOriginType;

    /**
     * @return The type of origin that this Origin Access Control is for. Valid values are `s3`, and `mediastore`.
     * 
     */
    public Output<String> originAccessControlOriginType() {
        return this.originAccessControlOriginType;
    }

    /**
     * Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
     * 
     */
    @Import(name="signingBehavior", required=true)
    private Output<String> signingBehavior;

    /**
     * @return Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
     * 
     */
    public Output<String> signingBehavior() {
        return this.signingBehavior;
    }

    /**
     * Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
     * 
     */
    @Import(name="signingProtocol", required=true)
    private Output<String> signingProtocol;

    /**
     * @return Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
     * 
     */
    public Output<String> signingProtocol() {
        return this.signingProtocol;
    }

    private OriginAccessControlArgs() {}

    private OriginAccessControlArgs(OriginAccessControlArgs $) {
        this.description = $.description;
        this.name = $.name;
        this.originAccessControlOriginType = $.originAccessControlOriginType;
        this.signingBehavior = $.signingBehavior;
        this.signingProtocol = $.signingProtocol;
    }

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

    public static final class Builder {
        private OriginAccessControlArgs $;

        public Builder() {
            $ = new OriginAccessControlArgs();
        }

        public Builder(OriginAccessControlArgs defaults) {
            $ = new OriginAccessControlArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param description The description of the Origin Access Control. Defaults to &#34;Managed by Pulumi&#34; if omitted.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output<String> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the Origin Access Control. Defaults to &#34;Managed by Pulumi&#34; if omitted.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name A name that identifies the Origin Access Control.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A name that identifies the Origin Access Control.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param originAccessControlOriginType The type of origin that this Origin Access Control is for. Valid values are `s3`, and `mediastore`.
         * 
         * @return builder
         * 
         */
        public Builder originAccessControlOriginType(Output<String> originAccessControlOriginType) {
            $.originAccessControlOriginType = originAccessControlOriginType;
            return this;
        }

        /**
         * @param originAccessControlOriginType The type of origin that this Origin Access Control is for. Valid values are `s3`, and `mediastore`.
         * 
         * @return builder
         * 
         */
        public Builder originAccessControlOriginType(String originAccessControlOriginType) {
            return originAccessControlOriginType(Output.of(originAccessControlOriginType));
        }

        /**
         * @param signingBehavior Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
         * 
         * @return builder
         * 
         */
        public Builder signingBehavior(Output<String> signingBehavior) {
            $.signingBehavior = signingBehavior;
            return this;
        }

        /**
         * @param signingBehavior Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
         * 
         * @return builder
         * 
         */
        public Builder signingBehavior(String signingBehavior) {
            return signingBehavior(Output.of(signingBehavior));
        }

        /**
         * @param signingProtocol Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
         * 
         * @return builder
         * 
         */
        public Builder signingProtocol(Output<String> signingProtocol) {
            $.signingProtocol = signingProtocol;
            return this;
        }

        /**
         * @param signingProtocol Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
         * 
         * @return builder
         * 
         */
        public Builder signingProtocol(String signingProtocol) {
            return signingProtocol(Output.of(signingProtocol));
        }

        public OriginAccessControlArgs build() {
            $.originAccessControlOriginType = Objects.requireNonNull($.originAccessControlOriginType, "expected parameter 'originAccessControlOriginType' to be non-null");
            $.signingBehavior = Objects.requireNonNull($.signingBehavior, "expected parameter 'signingBehavior' to be non-null");
            $.signingProtocol = Objects.requireNonNull($.signingProtocol, "expected parameter 'signingProtocol' to be non-null");
            return $;
        }
    }

}
