public Service withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of service.
</p>
<ul>
<li>
<p>
Amazon Web Services Resource - The type of an Amazon Web Services resource. For example,
<code>AWS::EC2::Instance</code> for an application running on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for
an Amazon DynamoDB table that the application used.
</p>
</li>
<li>
<p>
Amazon Web Services Service - The type of an Amazon Web Services service. For example, <code>AWS::DynamoDB</code>
for downstream calls to Amazon DynamoDB that didn't target a specific table.
</p>
</li>
<li>
<p>
<code>client</code> - Represents the clients that sent requests to a root service.
</p>
</li>
<li>
<p>
<code>remote</code> - A downstream service of indeterminate type.
</p>
</li>
</ul>

@param type
       The type of service.</p>
       <ul>
       <li>
       <p>
       Amazon Web Services Resource - The type of an Amazon Web Services resource. For example,
       <code>AWS::EC2::Instance</code> for an application running on Amazon EC2 or
       <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table that the application used.
       </p>
       </li>
       <li>
       <p>
       Amazon Web Services Service - The type of an Amazon Web Services service. For example,
       <code>AWS::DynamoDB</code> for downstream calls to Amazon DynamoDB that didn't target a specific table.
       </p>
       </li>
       <li>
       <p>
       <code>client</code> - Represents the clients that sent requests to a root service.
       </p>
       </li>
       <li>
       <p>
       <code>remote</code> - A downstream service of indeterminate type.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-xray/src/main/java/com/amazonaws/services/xray/model/Service.java