// *** 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.codestarconnections.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetConnectionResult {
    private String arn;
    /**
     * @return CodeStar Connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`.
     * 
     */
    private String connectionStatus;
    /**
     * @return ARN of the host associated with the connection.
     * 
     */
    private String hostArn;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Name of the CodeStar Connection. The name is unique in the calling AWS account.
     * 
     */
    private String name;
    /**
     * @return Name of the external provider where your third-party code repository is configured. Possible values are `Bitbucket` and `GitHub`. For connections to a GitHub Enterprise Server instance, you must create an aws.codestarconnections.Host resource and use `host_arn` instead.
     * 
     */
    private String providerType;
    /**
     * @return Map of key-value resource tags to associate with the resource.
     * 
     */
    private Map<String,String> tags;

    private GetConnectionResult() {}
    public String arn() {
        return this.arn;
    }
    /**
     * @return CodeStar Connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`.
     * 
     */
    public String connectionStatus() {
        return this.connectionStatus;
    }
    /**
     * @return ARN of the host associated with the connection.
     * 
     */
    public String hostArn() {
        return this.hostArn;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the CodeStar Connection. The name is unique in the calling AWS account.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Name of the external provider where your third-party code repository is configured. Possible values are `Bitbucket` and `GitHub`. For connections to a GitHub Enterprise Server instance, you must create an aws.codestarconnections.Host resource and use `host_arn` instead.
     * 
     */
    public String providerType() {
        return this.providerType;
    }
    /**
     * @return Map of key-value resource tags to associate with the resource.
     * 
     */
    public Map<String,String> tags() {
        return this.tags;
    }

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

    public static Builder builder(GetConnectionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private String connectionStatus;
        private String hostArn;
        private String id;
        private String name;
        private String providerType;
        private Map<String,String> tags;
        public Builder() {}
        public Builder(GetConnectionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.connectionStatus = defaults.connectionStatus;
    	      this.hostArn = defaults.hostArn;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.providerType = defaults.providerType;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            this.arn = Objects.requireNonNull(arn);
            return this;
        }
        @CustomType.Setter
        public Builder connectionStatus(String connectionStatus) {
            this.connectionStatus = Objects.requireNonNull(connectionStatus);
            return this;
        }
        @CustomType.Setter
        public Builder hostArn(String hostArn) {
            this.hostArn = Objects.requireNonNull(hostArn);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder providerType(String providerType) {
            this.providerType = Objects.requireNonNull(providerType);
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map<String,String> tags) {
            this.tags = Objects.requireNonNull(tags);
            return this;
        }
        public GetConnectionResult build() {
            final var o = new GetConnectionResult();
            o.arn = arn;
            o.connectionStatus = connectionStatus;
            o.hostArn = hostArn;
            o.id = id;
            o.name = name;
            o.providerType = providerType;
            o.tags = tags;
            return o;
        }
    }
}
