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

import com.pulumi.aws.kinesisanalyticsv2.outputs.ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent;
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 ApplicationApplicationConfigurationApplicationCodeConfiguration {
    /**
     * @return The location and type of the application code.
     * 
     */
    private @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent;
    /**
     * @return Specifies whether the code content is in text or zip format. Valid values: `PLAINTEXT`, `ZIPFILE`.
     * 
     */
    private String codeContentType;

    private ApplicationApplicationConfigurationApplicationCodeConfiguration() {}
    /**
     * @return The location and type of the application code.
     * 
     */
    public Optional<ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent> codeContent() {
        return Optional.ofNullable(this.codeContent);
    }
    /**
     * @return Specifies whether the code content is in text or zip format. Valid values: `PLAINTEXT`, `ZIPFILE`.
     * 
     */
    public String codeContentType() {
        return this.codeContentType;
    }

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

    public static Builder builder(ApplicationApplicationConfigurationApplicationCodeConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent;
        private String codeContentType;
        public Builder() {}
        public Builder(ApplicationApplicationConfigurationApplicationCodeConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.codeContent = defaults.codeContent;
    	      this.codeContentType = defaults.codeContentType;
        }

        @CustomType.Setter
        public Builder codeContent(@Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent) {
            this.codeContent = codeContent;
            return this;
        }
        @CustomType.Setter
        public Builder codeContentType(String codeContentType) {
            this.codeContentType = Objects.requireNonNull(codeContentType);
            return this;
        }
        public ApplicationApplicationConfigurationApplicationCodeConfiguration build() {
            final var o = new ApplicationApplicationConfigurationApplicationCodeConfiguration();
            o.codeContent = codeContent;
            o.codeContentType = codeContentType;
            return o;
        }
    }
}
