public ServiceNameAndResourceType withResourceType(String resourceType) {
        setResourceType(resourceType);
        return this;
    }
<p>
The type of the resource. This takes the form of: <code>service-code</code>:<code>resource-code</code>, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string <code>ec2:subnet</code>.
</p>

@param resourceType
       The type of the resource. This takes the form of: <code>service-code</code>:<code>resource-code</code>,
       and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string
       <code>ec2:subnet</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/ServiceNameAndResourceType.java