public DescribeProtectionRequest withResourceArn(String resourceArn) {
        setResourceArn(resourceArn);
        return this;
    }
<p>
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
<code>ResourceArn</code> of the protected resource or the <code>ProtectionID</code> of the protection, but not
both.
</p>

@param resourceArn
       The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
       <code>ResourceArn</code> of the protected resource or the <code>ProtectionID</code> of the protection, but
       not both.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/DescribeProtectionRequest.java