text:
package com.amazonaws.services.proton.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 *

 * Template version source data.
 *

 *
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class TemplateVersionSourceInput implements Serializable, Cloneable, StructuredPojo {

    /**
     *

     * An S3 source object that includes the template bundle S3 path and name for a template minor version.
     *

     */
    private S3ObjectSource s3;

    /**
     *

     * An S3 source object that includes the template bundle S3 path and name for a template minor version.
     *

     *
     * @param s3
     *        An S3 source object that includes the template bundle S3 path and name for a template minor version.
     */

    public void setS3(S3ObjectSource s3) {
        this.s3 = s3;
    }

    /**
     *

     * An S3 source object that includes the template bundle S3 path and name for a template minor version.
     *

     *
     * @return An S3 source object that includes the template bundle S3 path and name for a template minor version.
     */

    public S3ObjectSource getS3() {
        return this.s3;
    }

    /**
     *

     * An S3 source object that includes the template bundle S3 path and name for a template minor version.
     *

     *
     * @param s3
     *        An S3 source object that includes the template bundle S3 path and name for a template minor version.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public TemplateVersionSourceInput withS3(S3ObjectSource s3) {
        setS3(s3);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getS3() != null)
            sb.append("S3: ").append(getS3());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof TemplateVersionSourceInput == false)
            return false;
        TemplateVersionSourceInput other = (TemplateVersionSourceInput) obj;
        if (other.getS3() == null ^ this.getS3() == null)
            return false;
        if (other.getS3() != null && other.getS3().equals(this.getS3()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getS3() == null) ? 0 : getS3().hashCode());
        return hashCode;
    }

    @Override
    public TemplateVersionSourceInput clone() {
        try {
            return (TemplateVersionSourceInput) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.proton.model.transform.TemplateVersionSourceInputMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}