// *** 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.mediapackage.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 ChannelHlsIngestIngestEndpoint {
    /**
     * @return The password
     * 
     */
    private @Nullable String password;
    /**
     * @return The URL
     * 
     */
    private @Nullable String url;
    /**
     * @return The username
     * 
     */
    private @Nullable String username;

    private ChannelHlsIngestIngestEndpoint() {}
    /**
     * @return The password
     * 
     */
    public Optional<String> password() {
        return Optional.ofNullable(this.password);
    }
    /**
     * @return The URL
     * 
     */
    public Optional<String> url() {
        return Optional.ofNullable(this.url);
    }
    /**
     * @return The username
     * 
     */
    public Optional<String> username() {
        return Optional.ofNullable(this.username);
    }

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

    public static Builder builder(ChannelHlsIngestIngestEndpoint defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String password;
        private @Nullable String url;
        private @Nullable String username;
        public Builder() {}
        public Builder(ChannelHlsIngestIngestEndpoint defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.password = defaults.password;
    	      this.url = defaults.url;
    	      this.username = defaults.username;
        }

        @CustomType.Setter
        public Builder password(@Nullable String password) {
            this.password = password;
            return this;
        }
        @CustomType.Setter
        public Builder url(@Nullable String url) {
            this.url = url;
            return this;
        }
        @CustomType.Setter
        public Builder username(@Nullable String username) {
            this.username = username;
            return this;
        }
        public ChannelHlsIngestIngestEndpoint build() {
            final var o = new ChannelHlsIngestIngestEndpoint();
            o.password = password;
            o.url = url;
            o.username = username;
            return o;
        }
    }
}
