public CheckNoPublicAccessRequest withResourceType(AccessCheckResourceType resourceType) {
        this.resourceType = resourceType.toString();
        return this;
    }
<p>
The type of resource to evaluate for public access. For example, to check for public access to Amazon S3 buckets,
you can choose <code>AWS::S3::Bucket</code> for the resource type.
</p>
<p>
For resource types not supported as valid values, IAM Access Analyzer will return an error.
</p>

@param resourceType
       The type of resource to evaluate for public access. For example, to check for public access to Amazon S3
       buckets, you can choose <code>AWS::S3::Bucket</code> for the resource type.</p>
       <p>
       For resource types not supported as valid values, IAM Access Analyzer will return an error.
@return Returns a reference to this object so that method calls can be chained together.
@see AccessCheckResourceType
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/CheckNoPublicAccessRequest.java