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

com.pulumi.aws.cloudwatch.EventConnectionArgs 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.aws.cloudwatch;

import com.pulumi.aws.cloudwatch.inputs.EventConnectionAuthParametersArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EventConnectionArgs Empty = new EventConnectionArgs();

    /**
     * Parameters used for authorization. A maximum of 1 are allowed. Documented below.
     * 
     */
    @Import(name="authParameters", required=true)
    private Output authParameters;

    /**
     * @return Parameters used for authorization. A maximum of 1 are allowed. Documented below.
     * 
     */
    public Output authParameters() {
        return this.authParameters;
    }

    /**
     * Choose the type of authorization to use for the connection. One of `API_KEY`,`BASIC`,`OAUTH_CLIENT_CREDENTIALS`.
     * 
     */
    @Import(name="authorizationType", required=true)
    private Output authorizationType;

    /**
     * @return Choose the type of authorization to use for the connection. One of `API_KEY`,`BASIC`,`OAUTH_CLIENT_CREDENTIALS`.
     * 
     */
    public Output authorizationType() {
        return this.authorizationType;
    }

    /**
     * Enter a description for the connection. Maximum of 512 characters.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Enter a description for the connection. Maximum of 512 characters.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the new connection. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the new connection. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private EventConnectionArgs() {}

    private EventConnectionArgs(EventConnectionArgs $) {
        this.authParameters = $.authParameters;
        this.authorizationType = $.authorizationType;
        this.description = $.description;
        this.name = $.name;
    }

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

    public static final class Builder {
        private EventConnectionArgs $;

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

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

        /**
         * @param authParameters Parameters used for authorization. A maximum of 1 are allowed. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder authParameters(Output authParameters) {
            $.authParameters = authParameters;
            return this;
        }

        /**
         * @param authParameters Parameters used for authorization. A maximum of 1 are allowed. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder authParameters(EventConnectionAuthParametersArgs authParameters) {
            return authParameters(Output.of(authParameters));
        }

        /**
         * @param authorizationType Choose the type of authorization to use for the connection. One of `API_KEY`,`BASIC`,`OAUTH_CLIENT_CREDENTIALS`.
         * 
         * @return builder
         * 
         */
        public Builder authorizationType(Output authorizationType) {
            $.authorizationType = authorizationType;
            return this;
        }

        /**
         * @param authorizationType Choose the type of authorization to use for the connection. One of `API_KEY`,`BASIC`,`OAUTH_CLIENT_CREDENTIALS`.
         * 
         * @return builder
         * 
         */
        public Builder authorizationType(String authorizationType) {
            return authorizationType(Output.of(authorizationType));
        }

        /**
         * @param description Enter a description for the connection. Maximum of 512 characters.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Enter a description for the connection. Maximum of 512 characters.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name of the new connection. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the new connection. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public EventConnectionArgs build() {
            if ($.authParameters == null) {
                throw new MissingRequiredPropertyException("EventConnectionArgs", "authParameters");
            }
            if ($.authorizationType == null) {
                throw new MissingRequiredPropertyException("EventConnectionArgs", "authorizationType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy