protected ProgressEvent validate()

in aws-ec2-transitgatewayroutetablepropagation/src/main/java/software/amazon/ec2/transitgatewayroutetablepropagation/workflow/ValidCurrentStateCheckBase.java [59:70]


    protected ProgressEvent<ResourceModel, CallbackContext> validate() {
        String currentState = this.currentState();
        if (currentState == null) {
            return this.handleCfnNotFoundException();
        }
        if((this.invalidStates().isEmpty() && this.validStates().contains(this.currentState()))
                || (this.validStates().isEmpty() && !this.invalidStates().contains(this.currentState()))) {
            return this.progress;
        } else {
            return this.handleCfnConflictException();
        }
    }