public PhysicalResourceId withType(PhysicalIdentifierType type) {
        this.type = type.toString();
        return this;
    }
<p>
Specifies the type of physical resource identifier.
</p>
<dl>
<dt>Arn</dt>
<dd>
<p>
The resource identifier is an Amazon Resource Name (ARN) and it can identify the following list of resources:
</p>
<ul>
<li>
<p>
<code>AWS::ECS::Service</code>
</p>
</li>
<li>
<p>
<code>AWS::EFS::FileSystem</code>
</p>
</li>
<li>
<p>
<code>AWS::ElasticLoadBalancingV2::LoadBalancer</code>
</p>
</li>
<li>
<p>
<code>AWS::Lambda::Function</code>
</p>
</li>
<li>
<p>
<code>AWS::SNS::Topic</code>
</p>
</li>
</ul>
</dd>
<dt>Native</dt>
<dd>
<p>
The resource identifier is an Resilience Hub-native identifier and it can identify the following list of
resources:
</p>
<ul>
<li>
<p>
<code>AWS::ApiGateway::RestApi</code>
</p>
</li>
<li>
<p>
<code>AWS::ApiGatewayV2::Api</code>
</p>
</li>
<li>
<p>
<code>AWS::AutoScaling::AutoScalingGroup</code>
</p>
</li>
<li>
<p>
<code>AWS::DocDB::DBCluster</code>
</p>
</li>
<li>
<p>
<code>AWS::DocDB::DBGlobalCluster</code>
</p>
</li>
<li>
<p>
<code>AWS::DocDB::DBInstance</code>
</p>
</li>
<li>
<p>
<code>AWS::DynamoDB::GlobalTable</code>
</p>
</li>
<li>
<p>
<code>AWS::DynamoDB::Table</code>
</p>
</li>
<li>
<p>
<code>AWS::EC2::EC2Fleet</code>
</p>
</li>
<li>
<p>
<code>AWS::EC2::Instance</code>
</p>
</li>
<li>
<p>
<code>AWS::EC2::NatGateway</code>
</p>
</li>
<li>
<p>
<code>AWS::EC2::Volume</code>
</p>
</li>
<li>
<p>
<code>AWS::ElasticLoadBalancing::LoadBalancer</code>
</p>
</li>
<li>
<p>
<code>AWS::RDS::DBCluster</code>
</p>
</li>
<li>
<p>
<code>AWS::RDS::DBInstance</code>
</p>
</li>
<li>
<p>
<code>AWS::RDS::GlobalCluster</code>
</p>
</li>
<li>
<p>
<code>AWS::Route53::RecordSet</code>
</p>
</li>
<li>
<p>
<code>AWS::S3::Bucket</code>
</p>
</li>
<li>
<p>
<code>AWS::SQS::Queue</code>
</p>
</li>
</ul>
</dd>
</dl>

@param type
       Specifies the type of physical resource identifier.</p>
       <dl>
       <dt>Arn</dt>
       <dd>
       <p>
       The resource identifier is an Amazon Resource Name (ARN) and it can identify the following list of
       resources:
       </p>
       <ul>
       <li>
       <p>
       <code>AWS::ECS::Service</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::EFS::FileSystem</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::ElasticLoadBalancingV2::LoadBalancer</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::Lambda::Function</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::SNS::Topic</code>
       </p>
       </li>
       </ul>
       </dd>
       <dt>Native</dt>
       <dd>
       <p>
       The resource identifier is an Resilience Hub-native identifier and it can identify the following list of
       resources:
       </p>
       <ul>
       <li>
       <p>
       <code>AWS::ApiGateway::RestApi</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::ApiGatewayV2::Api</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::AutoScaling::AutoScalingGroup</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::DocDB::DBCluster</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::DocDB::DBGlobalCluster</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::DocDB::DBInstance</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::DynamoDB::GlobalTable</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::DynamoDB::Table</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::EC2::EC2Fleet</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::EC2::Instance</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::EC2::NatGateway</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::EC2::Volume</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::ElasticLoadBalancing::LoadBalancer</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::RDS::DBCluster</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::RDS::DBInstance</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::RDS::GlobalCluster</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::Route53::RecordSet</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::S3::Bucket</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::SQS::Queue</code>
       </p>
       </li>
       </ul>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see PhysicalIdentifierType
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/PhysicalResourceId.java