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

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

import com.pulumi.aws.cloudwatch.inputs.EventConnectionAuthParametersArgs;
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 EventConnectionState extends com.pulumi.resources.ResourceArgs {

    public static final EventConnectionState Empty = new EventConnectionState();

    /**
     * The Amazon Resource Name (ARN) of the connection.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The Amazon Resource Name (ARN) of the connection.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

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

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

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

    /**
     * @return Choose the type of authorization to use for the connection. One of `API_KEY`,`BASIC`,`OAUTH_CLIENT_CREDENTIALS`.
     * 
     */
    public Optional> authorizationType() {
        return Optional.ofNullable(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);
    }

    /**
     * The Amazon Resource Name (ARN) of the secret created from the authorization parameters specified for the connection.
     * 
     */
    @Import(name="secretArn")
    private @Nullable Output secretArn;

    /**
     * @return The Amazon Resource Name (ARN) of the secret created from the authorization parameters specified for the connection.
     * 
     */
    public Optional> secretArn() {
        return Optional.ofNullable(this.secretArn);
    }

    private EventConnectionState() {}

    private EventConnectionState(EventConnectionState $) {
        this.arn = $.arn;
        this.authParameters = $.authParameters;
        this.authorizationType = $.authorizationType;
        this.description = $.description;
        this.name = $.name;
        this.secretArn = $.secretArn;
    }

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

    public static final class Builder {
        private EventConnectionState $;

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

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

        /**
         * @param arn The Amazon Resource Name (ARN) of the connection.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The Amazon Resource Name (ARN) of the connection.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param authParameters Parameters used for authorization. A maximum of 1 are allowed. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder authParameters(@Nullable 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(@Nullable 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));
        }

        /**
         * @param secretArn The Amazon Resource Name (ARN) of the secret created from the authorization parameters specified for the connection.
         * 
         * @return builder
         * 
         */
        public Builder secretArn(@Nullable Output secretArn) {
            $.secretArn = secretArn;
            return this;
        }

        /**
         * @param secretArn The Amazon Resource Name (ARN) of the secret created from the authorization parameters specified for the connection.
         * 
         * @return builder
         * 
         */
        public Builder secretArn(String secretArn) {
            return secretArn(Output.of(secretArn));
        }

        public EventConnectionState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy