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

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

@CustomType
public final class RepositoryExternalConnections {
    /**
     * @return The name of the external connection associated with a repository.
     * 
     */
    private String externalConnectionName;
    private @Nullable String packageFormat;
    private @Nullable String status;

    private RepositoryExternalConnections() {}
    /**
     * @return The name of the external connection associated with a repository.
     * 
     */
    public String externalConnectionName() {
        return this.externalConnectionName;
    }
    public Optional<String> packageFormat() {
        return Optional.ofNullable(this.packageFormat);
    }
    public Optional<String> status() {
        return Optional.ofNullable(this.status);
    }

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

    public static Builder builder(RepositoryExternalConnections defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String externalConnectionName;
        private @Nullable String packageFormat;
        private @Nullable String status;
        public Builder() {}
        public Builder(RepositoryExternalConnections defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.externalConnectionName = defaults.externalConnectionName;
    	      this.packageFormat = defaults.packageFormat;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder externalConnectionName(String externalConnectionName) {
            this.externalConnectionName = Objects.requireNonNull(externalConnectionName);
            return this;
        }
        @CustomType.Setter
        public Builder packageFormat(@Nullable String packageFormat) {
            this.packageFormat = packageFormat;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {
            this.status = status;
            return this;
        }
        public RepositoryExternalConnections build() {
            final var o = new RepositoryExternalConnections();
            o.externalConnectionName = externalConnectionName;
            o.packageFormat = packageFormat;
            o.status = status;
            return o;
        }
    }
}
