public DescribeNotificationRuleResult withResource(String resource) {
        setResource(resource);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the resource associated with the notification rule.
</p>

@param resource
       The Amazon Resource Name (ARN) of the resource associated with the notification rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codestarnotifications/src/main/java/com/amazonaws/services/codestarnotifications/model/DescribeNotificationRuleResult.java