public BadGatewayException withResourceName(String resourceName) {
        setResourceName(resourceName);
        return this;
    }
<p>
The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.
</p>

@param resourceName
       The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagentruntime/src/main/java/com/amazonaws/services/bedrockagentruntime/model/BadGatewayException.java