public RecommendationRelatedAnomalyResource withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of the resource. Resource types take the same form that is used by Amazon Web Services CloudFormation
resource type identifiers, <code>service-provider::service-name::data-type-name</code>. For example,
<code>AWS::RDS::DBCluster</code>. For more information, see <a
href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Amazon
Web Services resource and property types reference</a> in the <i>Amazon Web Services CloudFormation User
Guide</i>.
</p>

@param type
       The type of the resource. Resource types take the same form that is used by Amazon Web Services
       CloudFormation resource type identifiers, <code>service-provider::service-name::data-type-name</code>. For
       example, <code>AWS::RDS::DBCluster</code>. For more information, see <a
       href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html"
       >Amazon Web Services resource and property types reference</a> in the <i>Amazon Web Services
       CloudFormation User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/RecommendationRelatedAnomalyResource.java