public TargetSummary withTargetType(String targetType) {
        setTargetType(targetType);
        return this;
    }
<p>
The type of the target (for example, <code>SNS</code>).
</p>
<ul>
<li>
<p>
Chatbot topics are specified as <code>SNS</code>.
</p>
</li>
<li>
<p>
Chatbot clients are specified as <code>AWSChatbotSlack</code>.
</p>
</li>
</ul>

@param targetType
       The type of the target (for example, <code>SNS</code>).</p>
       <ul>
       <li>
       <p>
       Chatbot topics are specified as <code>SNS</code>.
       </p>
       </li>
       <li>
       <p>
       Chatbot clients are specified as <code>AWSChatbotSlack</code>.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codestarnotifications/src/main/java/com/amazonaws/services/codestarnotifications/model/TargetSummary.java