public String getQueryDefinitionId() {
        return this.queryDefinitionId;
    }
<p>
If you are updating a query definition, use this parameter to specify the ID of the query definition that you
want to update. You can use <a
href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html"
>DescribeQueryDefinitions</a> to retrieve the IDs of your saved query definitions.
</p>
<p>
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the
new query definition and include it in the response to this operation.
</p>

@return If you are updating a query definition, use this parameter to specify the ID of the query definition that
        you want to update. You can use <a href=
        "https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html"
        >DescribeQueryDefinitions</a> to retrieve the IDs of your saved query definitions.</p>
        <p>
        If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID
        for the new query definition and include it in the response to this operation.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/PutQueryDefinitionRequest.java